#2F0F76#2F0F76
#2F0F76 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.156 H 286.6°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2F0F76 |
|---|---|
| RGB | rgb(47, 15, 118) |
| HSL | hsl(259, 77%, 26%) |
| HSV | hsv(259, 87%, 46%) |
| CMYK | cmyk(60.2%, 87.3%, 0%, 53.7%) |
| CIE-LAB | lab(16.77, 41.14, -51.89) |
| CIE-LCH | lch(16.77, 66.22, 308.41°) |
| OKLab | oklab(30.14% 0.0445 -0.1494) |
| OKLCH | oklch(30.14% 0.156 286.6) |
| XYZ | xyz(4.6121, 2.2537, 17.3280) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.69
Midnight Blue
#191970
ΔE00 4.16
Deep Blue
#040273
ΔE00 4.40
Dark Royal Blue
#02066F
ΔE00 4.46
Navy
#000080
ΔE00 4.64
Indigo
#4B0082
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F0F76 #56760F
analogous
#0F2276 #2F0F76 #620F76
triadic
#2F0F76 #762F0F #0F762F
tetradic
#2F0F76 #760F22 #56760F #0F7662
square
#2F0F76 #760F22 #56760F #0F7662
split-complementary
#2F0F76 #76620F #22760F
monochromatic
#0B031B #190840 #2F0F76 #4516AC #5A1DE2
Accessibility & contrast
On white
14.47
#2F0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2F0F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F0F76
14.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F0F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F0F76 | 1.00 | 14.47 | 1.45 | 14.47 |
| #FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#0A2F44
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f0f76; /* rgb */ color: rgb(47, 15, 118); /* oklch */ color: oklch(30.1% 0.156 286.6);
Tailwind
colors: {
custom: {
50: '#72549f',
500: '#2f0f76',
950: '#000000',
},
}SCSS
$custom: #2f0f76; $custom-light: #72549f; $custom-dark: #000000;
JSON
{
"hex": "#2f0f76",
"rgb": {
"r": 47,
"g": 15,
"b": 118
},
"hsl": {
"h": 258.641,
"s": 77.444,
"l": 26.078
},
"oklch": {
"l": 0.30144,
"c": 0.15594,
"h": 286.6
},
"luminance": 0.02254
}Semantic roles & 50–950 ramp
primary
#2F0F76
secondary
#87AD33
accent
#F434B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E