#2F1E8D#2F1E8D
#2F1E8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 279.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1E8D |
|---|---|
| RGB | rgb(47, 30, 141) |
| HSL | hsl(249, 65%, 34%) |
| HSV | hsv(249, 79%, 55%) |
| CMYK | cmyk(66.7%, 78.7%, 0%, 44.7%) |
| CIE-LAB | lab(21.78, 41.01, -58.17) |
| CIE-LCH | lch(21.78, 71.17, 305.18°) |
| OKLab | oklab(34.39% 0.0281 -0.1679) |
| OKLCH | oklch(34.39% 0.17 279.5) |
| XYZ | xyz(6.4427, 3.4555, 25.5216) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Indigo (survey)
#380282
ΔE00 4.83
Cobalt Blue
#030AA7
ΔE00 5.01
Midnight Blue
#191970
ΔE00 5.16
Indigo Blue
#3A18B1
ΔE00 5.28
Royal Blue (survey)
#0504AA
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1E8D #7C8D1E
analogous
#1E448D #2F1E8D #661E8D
triadic
#2F1E8D #8D2F1E #1E8D2F
tetradic
#2F1E8D #8D1E44 #7C8D1E #1E8D66
square
#2F1E8D #8D1E44 #7C8D1E #1E8D66
split-complementary
#2F1E8D #8D661E #448D1E
monochromatic
#0D0928 #1E135B #2F1E8D #4029BF #624CD9
Accessibility & contrast
On white
12.42
#2F1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F1E8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1E8D
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1E8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1E8D | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1e8d; /* rgb */ color: rgb(47, 30, 141); /* oklch */ color: oklch(34.4% 0.170 279.5);
Tailwind
colors: {
custom: {
50: '#755daf',
500: '#2f1e8d',
950: '#000000',
},
}SCSS
$custom: #2f1e8d; $custom-light: #755daf; $custom-dark: #000000;
JSON
{
"hex": "#2f1e8d",
"rgb": {
"r": 47,
"g": 30,
"b": 141
},
"hsl": {
"h": 249.189,
"s": 64.912,
"l": 33.529
},
"oklch": {
"l": 0.34385,
"c": 0.17029,
"h": 279.5
},
"luminance": 0.03456
}Semantic roles & 50–950 ramp
primary
#2F1E8D
secondary
#AABC4B
accent
#E840CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980