#2F2187#2F2187
#2F2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.160 H 280.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2187 |
|---|---|
| RGB | rgb(47, 33, 135) |
| HSL | hsl(248, 61%, 33%) |
| HSV | hsv(248, 76%, 53%) |
| CMYK | cmyk(65.2%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(21.73, 37.43, -54.51) |
| CIE-LCH | lch(21.73, 66.12, 304.48°) |
| OKLab | oklab(34.16% 0.0277 -0.1573) |
| OKLCH | oklch(34.16% 0.16 280) |
| XYZ | xyz(6.0879, 3.4408, 23.2603) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.79
Midnight Blue
#191970
ΔE00 4.49
Indigo (survey)
#380282
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 6.11
Indigo Blue
#3A18B1
ΔE00 6.32
Darkblue
#00008B
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2187 #798721
analogous
#214687 #2F2187 #622187
triadic
#2F2187 #872F21 #21872F
tetradic
#2F2187 #872146 #798721 #218762
square
#2F2187 #872146 #798721 #218762
split-complementary
#2F2187 #876221 #468721
monochromatic
#0D0925 #1E1556 #2F2187 #402DB8 #614FD4
Accessibility & contrast
On white
12.44
#2F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2187
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2187 | 1.00 | 12.44 | 1.69 | 12.44 |
| #FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.44 | 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: #2f2187; /* rgb */ color: rgb(47, 33, 135); /* oklch */ color: oklch(34.2% 0.160 280.0);
Tailwind
colors: {
custom: {
50: '#745eab',
500: '#2f2187',
950: '#000000',
},
}SCSS
$custom: #2f2187; $custom-light: #745eab; $custom-dark: #000000;
JSON
{
"hex": "#2f2187",
"rgb": {
"r": 47,
"g": 33,
"b": 135
},
"hsl": {
"h": 248.235,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.34157,
"c": 0.15971,
"h": 280
},
"luminance": 0.03441
}Semantic roles & 50–950 ramp
primary
#2F2187
secondary
#A8B74D
accent
#E444CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F