What is hex #2A287C color?
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.
From a technical standpoint, this color is composed of 16% red, 16% green and 49% blue, resulting in rgb(42, 40, 124) and hsl(241, 51%, 32%).
For print media and manufacturing layout, the CMYK equivalent is (66%, 68%, 0%, 51%).
In the HSV/HSB scale, #2A287C features a hue of 241°, 68% saturation, and 49% brightness.
Hex #2A287C Color Codes & Conversions
| Closest Named Color | Cosmic Cobalt (#2E2D88) |
| Hex Code | #2A287C |
| Hex8 (RGBA Hex) | #2A287CFF |
| RGB (CSS) | rgb(42, 40, 124) |
| RGBA (CSS) | rgba(42, 40, 124, 1) |
| HSL (CSS) | hsl(241, 51%, 32%) |
| HSLA (CSS) | hsla(241, 51%, 32%, 1) |
| HSV / HSB | (241°, 68%, 49%) |
| CMYK Values | (66%, 68%, 0%, 51%) |
| OKLCH (Modern CSS) | oklch(33.8% 0.138 277.1) |
| CIE-LAB (D65) | 21.82, 28.63, -47.44 |
| CIE XYZ | 5.35, 3.46, 19.45 |
| Decimal / Binary |
2762876
00101010 00101000 01111100 |
Closest Standards & Equivalents
| Closest Web Safe | #333366 [Deep Koamaru] |
| Inverse Color | #D5D783 |
| Complementary Color | #7A7C28 |
| Closest Pantone® | Pantone 2756 C |
| Closest RAL | RAL 5002 [Ultramarine blue] |
#2A287C Grayscale Equivalents
| Average | #454545 |
| Lightness (Desaturation) | #525252 |
| Weighted (BT601) | #323232 |
| Luma (BT709) | #2E2E2E |
WCAG 2.1 Color Contrast & Accessibility
Check how #2A287C complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #2A287C
Sample preview of readable typography on top of #2A287C.
Black Text on #2A287C
Sample preview of readable typography on top of #2A287C.
HTML / CSS Live Previews & Snippets for #2A287C
Preview #2A287C in real UI elements and copy ready-to-use CSS rules.
background-color: #2A287C;
color: #2A287C;
border: 2px solid #2A287C;
:root {
--color-primary: #2A287C;
--color-primary-rgb: 42, 40, 124;
--color-complementary: #7A7C28;
}
.btn-accent {
background-color: #2A287C;
color: #ffffff;
}
Hex #2A287C Color Palettes
Complementary Palette
The complementary color of #2A287C is #7A7C28. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #2A287C pairs with #28507C and #54287C, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #2A287C pairs with #507C28 and #7C5428, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #2A287C uses #287C2A and #7C2A28, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #2A287C combines #7C2A28, #7A7C28 and #287A7C around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #2A287C pairs with #7C2850, #7A7C28 and #287C54 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #2A287C
Tints
Tints are created by mixing #2A287C with white, producing lighter variations.
Tones
Tones are created by mixing #2A287C with gray, softening saturation.
Shades
Shades result from mixing #2A287C with black, creating deeper variations.
Hex #2A287C in Programming & CSS Frameworks
Copy the exact syntax for #2A287C in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #2A287C |
| Tailwind CSS | bg-[#2A287C] text-[#2A287C] |
| Java (AWT) | new Color(42,40,124); |
| Python | Color("#2A287C") |
| .NET (C#) | Color.FromArgb(255, 42,40,124); |
| Swift / iOS | UIColor(red: 0.16, green: 0.16, blue: 0.49, alpha: 1) |
| Kotlin / Android | Color.rgb(42, 40, 124) |