#2A188C#2A188C
#2A188C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.176 H 277.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A188C |
|---|---|
| RGB | rgb(42, 24, 140) |
| HSL | hsl(249, 71%, 32%) |
| HSV | hsv(249, 83%, 55%) |
| CMYK | cmyk(70%, 82.9%, 0%, 45.1%) |
| CIE-LAB | lab(20.20, 43.21, -60.18) |
| CIE-LCH | lch(20.20, 74.09, 305.68°) |
| OKLab | oklab(33.14% 0.0241 -0.1739) |
| OKLCH | oklch(33.14% 0.176 277.9) |
| XYZ | xyz(6.0136, 3.0384, 25.0754) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.36
Indigo (survey)
#380282
ΔE00 3.99
Cobalt Blue
#030AA7
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.37
Royal Blue (survey)
#0504AA
ΔE00 4.75
Midnight Blue
#191970
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A188C #7A8C18
analogous
#18408C #2A188C #64188C
triadic
#2A188C #8C2A18 #188C2A
tetradic
#2A188C #8C1840 #7A8C18 #188C64
square
#2A188C #8C1840 #7A8C18 #188C64
split-complementary
#2A188C #8C6418 #408C18
monochromatic
#0B0624 #1A0F58 #2A188C #3A21C0 #5940DE
Accessibility & contrast
On white
13.06
#2A188C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2A188C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A188C
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A188C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A188C | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a188c; /* rgb */ color: rgb(42, 24, 140); /* oklch */ color: oklch(33.1% 0.176 277.9);
Tailwind
colors: {
custom: {
50: '#7459af',
500: '#2a188c',
950: '#000000',
},
}SCSS
$custom: #2a188c; $custom-light: #7459af; $custom-dark: #000000;
JSON
{
"hex": "#2a188c",
"rgb": {
"r": 42,
"g": 24,
"b": 140
},
"hsl": {
"h": 249.31,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.3314,
"c": 0.17552,
"h": 277.9
},
"luminance": 0.03039
}Semantic roles & 50–950 ramp
primary
#2A188C
secondary
#ABBF41
accent
#ED3AD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980