#2F1F80#2F1F80
#2F1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.153 H 281.6°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F80 |
|---|---|
| RGB | rgb(47, 31, 128) |
| HSL | hsl(250, 61%, 31%) |
| HSV | hsv(250, 76%, 50%) |
| CMYK | cmyk(63.3%, 75.8%, 0%, 49.8%) |
| CIE-LAB | lab(20.61, 36.28, -51.95) |
| CIE-LCH | lch(20.61, 63.36, 304.93°) |
| OKLab | oklab(33.15% 0.0308 -0.1498) |
| OKLCH | oklch(33.15% 0.153 281.6) |
| XYZ | xyz(5.5573, 3.1424, 20.7316) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.31
Indigo (survey)
#380282
ΔE00 4.99
Darkblue
#00008B
ΔE00 6.29
Dark Royal Blue
#02066F
ΔE00 6.41
Navy
#000080
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F80 #70801F
analogous
#1F3F80 #2F1F80 #5F1F80
triadic
#2F1F80 #802F1F #1F802F
tetradic
#2F1F80 #801F3F #70801F #1F805F
square
#2F1F80 #801F3F #70801F #1F805F
split-complementary
#2F1F80 #805F1F #3F801F
monochromatic
#0B071D #1D134F #2F1F80 #412BB1 #5E47D2
Accessibility & contrast
On white
12.89
#2F1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F1F80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F80
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F80 | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1f80; /* rgb */ color: rgb(47, 31, 128); /* oklch */ color: oklch(33.1% 0.153 281.6);
Tailwind
colors: {
custom: {
50: '#735da6',
500: '#2f1f80',
950: '#000000',
},
}SCSS
$custom: #2f1f80; $custom-light: #735da6; $custom-dark: #000000;
JSON
{
"hex": "#2f1f80",
"rgb": {
"r": 47,
"g": 31,
"b": 128
},
"hsl": {
"h": 249.897,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.33145,
"c": 0.15292,
"h": 281.6
},
"luminance": 0.03143
}Semantic roles & 50–950 ramp
primary
#2F1F80
secondary
#A1B348
accent
#E444CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F