#2F1776#2F1776
#2F1776 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 285.4°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1776 |
|---|---|
| RGB | rgb(47, 23, 118) |
| HSL | hsl(255, 67%, 28%) |
| HSV | hsv(255, 81%, 46%) |
| CMYK | cmyk(60.2%, 80.5%, 0%, 53.7%) |
| CIE-LAB | lab(18.03, 37.46, -49.80) |
| CIE-LCH | lch(18.03, 62.32, 306.95°) |
| OKLab | oklab(31.02% 0.0394 -0.1435) |
| OKLCH | oklch(31.02% 0.149 285.4) |
| XYZ | xyz(4.7477, 2.5248, 17.3732) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.30
Indigo (survey)
#380282
ΔE00 3.84
Dark Royal Blue
#02066F
ΔE00 5.07
Deep Blue
#040273
ΔE00 5.25
Royal
#0C1793
ΔE00 5.35
Navy
#000080
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1776 #5E7617
analogous
#172E76 #2F1776 #5F1776
triadic
#2F1776 #762F17 #17762F
tetradic
#2F1776 #76172E #5E7617 #17765F
square
#2F1776 #76172E #5E7617 #17765F
split-complementary
#2F1776 #765F17 #2E7617
monochromatic
#0A051A #1B0D43 #2F1776 #4321A9 #5B31D7
Accessibility & contrast
On white
13.95
#2F1776 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F1776 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1776
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1776 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1776 | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#093246
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1776; /* rgb */ color: rgb(47, 23, 118); /* oklch */ color: oklch(31.0% 0.149 285.4);
Tailwind
colors: {
custom: {
50: '#71579e',
500: '#2f1776',
950: '#000000',
},
}SCSS
$custom: #2f1776; $custom-light: #71579e; $custom-dark: #000000;
JSON
{
"hex": "#2f1776",
"rgb": {
"r": 47,
"g": 23,
"b": 118
},
"hsl": {
"h": 255.158,
"s": 67.376,
"l": 27.647
},
"oklch": {
"l": 0.31019,
"c": 0.14877,
"h": 285.4
},
"luminance": 0.02525
}Semantic roles & 50–950 ramp
primary
#2F1776
secondary
#90AB3E
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E