#2F1876#2F1876
#2F1876 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.148 H 285.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1876 |
|---|---|
| RGB | rgb(47, 24, 118) |
| HSL | hsl(255, 66%, 28%) |
| HSV | hsv(255, 80%, 46%) |
| CMYK | cmyk(60.2%, 79.7%, 0%, 53.7%) |
| CIE-LAB | lab(18.21, 36.94, -49.51) |
| CIE-LCH | lch(18.21, 61.77, 306.73°) |
| OKLab | oklab(31.15% 0.0387 -0.1426) |
| OKLCH | oklch(31.15% 0.148 285.2) |
| XYZ | xyz(4.7679, 2.5653, 17.3799) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.21
Indigo (survey)
#380282
ΔE00 4.03
Dark Royal Blue
#02066F
ΔE00 5.19
Royal
#0C1793
ΔE00 5.36
Deep Blue
#040273
ΔE00 5.40
Navy
#000080
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1876 #5F7618
analogous
#183076 #2F1876 #5E1876
triadic
#2F1876 #762F18 #18762F
tetradic
#2F1876 #761830 #5F7618 #18765E
square
#2F1876 #761830 #5F7618 #18765E
split-complementary
#2F1876 #765E18 #307618
monochromatic
#0A0519 #1B0E43 #2F1876 #4322A9 #5B33D5
Accessibility & contrast
On white
13.88
#2F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F1876 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1876
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1876 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1876 | 1.00 | 13.88 | 1.51 | 13.88 |
| #FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#093346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1876; /* rgb */ color: rgb(47, 24, 118); /* oklch */ color: oklch(31.1% 0.148 285.2);
Tailwind
colors: {
custom: {
50: '#71589e',
500: '#2f1876',
950: '#000000',
},
}SCSS
$custom: #2f1876; $custom-light: #71589e; $custom-dark: #000000;
JSON
{
"hex": "#2f1876",
"rgb": {
"r": 47,
"g": 24,
"b": 118
},
"hsl": {
"h": 254.681,
"s": 66.197,
"l": 27.843
},
"oklch": {
"l": 0.31145,
"c": 0.14775,
"h": 285.2
},
"luminance": 0.02566
}Semantic roles & 50–950 ramp
primary
#2F1876
secondary
#91AB3F
accent
#E93FBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E