#2F1E8B#2F1E8B
#2F1E8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 279.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1E8B |
|---|---|
| RGB | rgb(47, 30, 139) |
| HSL | hsl(249, 64%, 33%) |
| HSV | hsv(249, 78%, 55%) |
| CMYK | cmyk(66.2%, 78.4%, 0%, 45.5%) |
| CIE-LAB | lab(21.57, 40.38, -57.28) |
| CIE-LCH | lch(21.57, 70.08, 305.18°) |
| OKLab | oklab(34.17% 0.0287 -0.1654) |
| OKLCH | oklch(34.17% 0.168 279.8) |
| XYZ | xyz(6.2953, 3.3965, 24.7449) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.19
Indigo (survey)
#380282
ΔE00 4.76
Midnight Blue
#191970
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.24
Indigo Blue
#3A18B1
ΔE00 5.56
Darkblue
#00008B
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1E8B #7A8B1E
analogous
#1E438B #2F1E8B #651E8B
triadic
#2F1E8B #8B2F1E #1E8B2F
tetradic
#2F1E8B #8B1E43 #7A8B1E #1E8B65
square
#2F1E8B #8B1E43 #7A8B1E #1E8B65
split-complementary
#2F1E8B #8B651E #438B1E
monochromatic
#0D0826 #1E1359 #2F1E8B #4029BD #614BD8
Accessibility & contrast
On white
12.50
#2F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2F1E8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1E8B
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1E8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1E8B | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1e8b; /* rgb */ color: rgb(47, 30, 139); /* oklch */ color: oklch(34.2% 0.168 279.8);
Tailwind
colors: {
custom: {
50: '#755dae',
500: '#2f1e8b',
950: '#000000',
},
}SCSS
$custom: #2f1e8b; $custom-light: #755dae; $custom-dark: #000000;
JSON
{
"hex": "#2f1e8b",
"rgb": {
"r": 47,
"g": 30,
"b": 139
},
"hsl": {
"h": 249.358,
"s": 64.497,
"l": 33.137
},
"oklch": {
"l": 0.34169,
"c": 0.16783,
"h": 279.8
},
"luminance": 0.03397
}Semantic roles & 50–950 ramp
primary
#2F1E8B
secondary
#A9BB4A
accent
#E740CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F