#2F1F88#2F1F88
#2F1F88 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.163 H 280.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F88 |
|---|---|
| RGB | rgb(47, 31, 136) |
| HSL | hsl(249, 63%, 33%) |
| HSV | hsv(249, 77%, 53%) |
| CMYK | cmyk(65.4%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(21.44, 38.87, -55.62) |
| CIE-LCH | lch(21.44, 67.86, 304.95°) |
| OKLab | oklab(33.98% 0.0288 -0.1605) |
| OKLCH | oklch(33.98% 0.163 280.2) |
| XYZ | xyz(6.1048, 3.3614, 23.6149) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.49
Midnight Blue
#191970
ΔE00 4.55
Indigo (survey)
#380282
ΔE00 4.92
Cobalt Blue
#030AA7
ΔE00 5.71
Darkblue
#00008B
ΔE00 5.92
Indigo Blue
#3A18B1
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F88 #78881F
analogous
#1F4388 #2F1F88 #631F88
triadic
#2F1F88 #882F1F #1F882F
tetradic
#2F1F88 #881F43 #78881F #1F8863
square
#2F1F88 #881F43 #78881F #1F8863
split-complementary
#2F1F88 #88631F #43881F
monochromatic
#0D0824 #1E1456 #2F1F88 #402ABA #604BD6
Accessibility & contrast
On white
12.56
#2F1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F88
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F88 | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1f88; /* rgb */ color: rgb(47, 31, 136); /* oklch */ color: oklch(34.0% 0.163 280.2);
Tailwind
colors: {
custom: {
50: '#745dac',
500: '#2f1f88',
950: '#000000',
},
}SCSS
$custom: #2f1f88; $custom-light: #745dac; $custom-dark: #000000;
JSON
{
"hex": "#2f1f88",
"rgb": {
"r": 47,
"g": 31,
"b": 136
},
"hsl": {
"h": 249.143,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.33982,
"c": 0.16307,
"h": 280.2
},
"luminance": 0.03362
}Semantic roles & 50–950 ramp
primary
#2F1F88
secondary
#A8B94A
accent
#E642CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F