#2F2387#2F2387
#2F2387 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.158 H 279.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2387 |
|---|---|
| RGB | rgb(47, 35, 135) |
| HSL | hsl(247, 59%, 33%) |
| HSV | hsv(247, 74%, 53%) |
| CMYK | cmyk(65.2%, 74.1%, 0%, 47.1%) |
| CIE-LAB | lab(22.14, 36.27, -53.83) |
| CIE-LCH | lch(22.14, 64.91, 303.97°) |
| OKLab | oklab(34.45% 0.0263 -0.1553) |
| OKLCH | oklch(34.45% 0.158 279.6) |
| XYZ | xyz(6.1451, 3.5552, 23.2794) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.60
Indigo (survey)
#380282
ΔE00 5.87
Cobalt Blue
#030AA7
ΔE00 6.42
Indigo Blue
#3A18B1
ΔE00 6.49
Darkblue
#00008B
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2387 #7B8723
analogous
#234987 #2F2387 #612387
triadic
#2F2387 #872F23 #23872F
tetradic
#2F2387 #872349 #7B8723 #238761
square
#2F2387 #872349 #7B8723 #238761
split-complementary
#2F2387 #876123 #498723
monochromatic
#0D0A26 #1E1656 #2F2387 #4030B8 #6252D2
Accessibility & contrast
On white
12.27
#2F2387 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2F2387 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2387
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2387 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2387 | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f2387; /* rgb */ color: rgb(47, 35, 135); /* oklch */ color: oklch(34.4% 0.158 279.6);
Tailwind
colors: {
custom: {
50: '#7460ab',
500: '#2f2387',
950: '#000000',
},
}SCSS
$custom: #2f2387; $custom-light: #7460ab; $custom-dark: #000000;
JSON
{
"hex": "#2f2387",
"rgb": {
"r": 47,
"g": 35,
"b": 135
},
"hsl": {
"h": 247.2,
"s": 58.824,
"l": 33.333
},
"oklch": {
"l": 0.3445,
"c": 0.15752,
"h": 279.6
},
"luminance": 0.03556
}Semantic roles & 50–950 ramp
primary
#2F2387
secondary
#AAB650
accent
#E246CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F