#2F1E8A#2F1E8A
#2F1E8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 280.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1E8A |
|---|---|
| RGB | rgb(47, 30, 138) |
| HSL | hsl(249, 64%, 33%) |
| HSV | hsv(249, 78%, 54%) |
| CMYK | cmyk(65.9%, 78.3%, 0%, 45.9%) |
| CIE-LAB | lab(21.46, 40.06, -56.83) |
| CIE-LCH | lch(21.46, 69.53, 305.18°) |
| OKLab | oklab(34.06% 0.0289 -0.164) |
| OKLCH | oklch(34.06% 0.167 280) |
| XYZ | xyz(6.2225, 3.3674, 24.3619) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.25
Indigo (survey)
#380282
ΔE00 4.73
Midnight Blue
#191970
ΔE00 4.79
Cobalt Blue
#030AA7
ΔE00 5.35
Darkblue
#00008B
ΔE00 5.68
Indigo Blue
#3A18B1
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1E8A #798A1E
analogous
#1E438A #2F1E8A #651E8A
triadic
#2F1E8A #8A2F1E #1E8A2F
tetradic
#2F1E8A #8A1E43 #798A1E #1E8A65
square
#2F1E8A #8A1E43 #798A1E #1E8A65
split-complementary
#2F1E8A #8A651E #438A1E
monochromatic
#0D0825 #1E1358 #2F1E8A #4029BC #614BD8
Accessibility & contrast
On white
12.55
#2F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1E8A
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1E8A | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1e8a; /* rgb */ color: rgb(47, 30, 138); /* oklch */ color: oklch(34.1% 0.167 280.0);
Tailwind
colors: {
custom: {
50: '#755dad',
500: '#2f1e8a',
950: '#000000',
},
}SCSS
$custom: #2f1e8a; $custom-light: #755dad; $custom-dark: #000000;
JSON
{
"hex": "#2f1e8a",
"rgb": {
"r": 47,
"g": 30,
"b": 138
},
"hsl": {
"h": 249.444,
"s": 64.286,
"l": 32.941
},
"oklch": {
"l": 0.34061,
"c": 0.16658,
"h": 280
},
"luminance": 0.03368
}Semantic roles & 50–950 ramp
primary
#2F1E8A
secondary
#A8BA4A
accent
#E741CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F