#2D2187#2D2187
#2D2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.160 H 278.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2187 |
|---|---|
| RGB | rgb(45, 33, 135) |
| HSL | hsl(247, 61%, 33%) |
| HSV | hsv(247, 76%, 53%) |
| CMYK | cmyk(66.7%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(21.56, 37.17, -54.80) |
| CIE-LCH | lch(21.56, 66.21, 304.15°) |
| OKLab | oklab(33.99% 0.0248 -0.1582) |
| OKLCH | oklch(33.99% 0.16 278.9) |
| XYZ | xyz(5.9978, 3.3944, 23.2561) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.63
Midnight Blue
#191970
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 5.51
Cobalt Blue
#030AA7
ΔE00 6.04
Darkblue
#00008B
ΔE00 6.27
Indigo Blue
#3A18B1
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2187 #7B8721
analogous
#214887 #2D2187 #602187
triadic
#2D2187 #872D21 #21872D
tetradic
#2D2187 #872148 #7B8721 #218760
square
#2D2187 #872148 #7B8721 #218760
split-complementary
#2D2187 #876021 #488721
monochromatic
#0C0925 #1D1556 #2D2187 #3D2DB8 #5E4FD4
Accessibility & contrast
On white
12.51
#2D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2D2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2187
12.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2187 | 1.00 | 12.51 | 1.68 | 12.51 |
| #FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2d2187; /* rgb */ color: rgb(45, 33, 135); /* oklch */ color: oklch(34.0% 0.160 278.9);
Tailwind
colors: {
custom: {
50: '#735eab',
500: '#2d2187',
950: '#000000',
},
}SCSS
$custom: #2d2187; $custom-light: #735eab; $custom-dark: #000000;
JSON
{
"hex": "#2d2187",
"rgb": {
"r": 45,
"g": 33,
"b": 135
},
"hsl": {
"h": 247.059,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.33993,
"c": 0.16012,
"h": 278.9
},
"luminance": 0.03395
}Semantic roles & 50–950 ramp
primary
#2D2187
secondary
#ABB74D
accent
#E444D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F