#2F1376#2F1376
#2F1376 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.153 H 286.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1376 |
|---|---|
| RGB | rgb(47, 19, 118) |
| HSL | hsl(257, 72%, 27%) |
| HSV | hsv(257, 84%, 46%) |
| CMYK | cmyk(60.2%, 83.9%, 0%, 53.7%) |
| CIE-LAB | lab(17.36, 39.41, -50.91) |
| CIE-LCH | lch(17.36, 64.38, 307.74°) |
| OKLab | oklab(30.55% 0.0422 -0.1467) |
| OKLCH | oklch(30.55% 0.153 286) |
| XYZ | xyz(4.6742, 2.3778, 17.3487) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.18
Midnight Blue
#191970
ΔE00 3.70
Dark Royal Blue
#02066F
ΔE00 4.69
Deep Blue
#040273
ΔE00 4.76
Navy
#000080
ΔE00 5.01
Indigo
#4B0082
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1376 #5A7613
analogous
#132876 #2F1376 #611376
triadic
#2F1376 #762F13 #13762F
tetradic
#2F1376 #761328 #5A7613 #137661
square
#2F1376 #761328 #5A7613 #137661
split-complementary
#2F1376 #766113 #287613
monochromatic
#0A041A #1A0B41 #2F1376 #441BAB #5A27DC
Accessibility & contrast
On white
14.23
#2F1376 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2F1376 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1376
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1376 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1376 | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#093145
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2f1376; /* rgb */ color: rgb(47, 19, 118); /* oklch */ color: oklch(30.6% 0.153 286.0);
Tailwind
colors: {
custom: {
50: '#72559f',
500: '#2f1376',
950: '#000000',
},
}SCSS
$custom: #2f1376; $custom-light: #72559f; $custom-dark: #000000;
JSON
{
"hex": "#2f1376",
"rgb": {
"r": 47,
"g": 19,
"b": 118
},
"hsl": {
"h": 256.97,
"s": 72.263,
"l": 26.863
},
"oklch": {
"l": 0.30551,
"c": 0.1526,
"h": 286
},
"luminance": 0.02378
}Semantic roles & 50–950 ramp
primary
#2F1376
secondary
#8CAC39
accent
#EF39BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E