#2F1867#2F1867
#2F1867 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.129 H 289.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1867 |
|---|---|
| RGB | rgb(47, 24, 103) |
| HSL | hsl(257, 62%, 25%) |
| HSV | hsv(257, 77%, 40%) |
| CMYK | cmyk(54.4%, 76.7%, 0%, 59.6%) |
| CIE-LAB | lab(16.68, 32.26, -42.27) |
| CIE-LCH | lch(16.68, 53.17, 307.35°) |
| OKLab | oklab(29.6% 0.0428 -0.1214) |
| OKLCH | oklch(29.6% 0.129 289.4) |
| XYZ | xyz(3.9464, 2.2367, 13.0531) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.92
Dark Indigo
#1F0954
ΔE00 4.38
Darkblue (survey)
#030764
ΔE00 5.74
Indigo (survey)
#380282
ΔE00 5.93
Dark Royal Blue
#02066F
ΔE00 6.02
Deep Blue
#040273
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1867 #506718
analogous
#182967 #2F1867 #561867
triadic
#2F1867 #672F18 #18672F
tetradic
#2F1867 #671829 #506718 #186756
square
#2F1867 #671829 #506718 #186756
split-complementary
#2F1867 #675618 #296718
monochromatic
#0B0619 #180C35 #2F1867 #462499 #5C2FCA
Accessibility & contrast
On white
14.51
#2F1867 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2F1867 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1867
14.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1867 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1867 | 1.00 | 14.51 | 1.45 | 14.51 |
| #FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1B2D3E
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f1867; /* rgb */ color: rgb(47, 24, 103); /* oklch */ color: oklch(29.6% 0.129 289.4);
Tailwind
colors: {
custom: {
50: '#6e5793',
500: '#2f1867',
950: '#000000',
},
}SCSS
$custom: #2f1867; $custom-light: #6e5793; $custom-dark: #000000;
JSON
{
"hex": "#2f1867",
"rgb": {
"r": 47,
"g": 24,
"b": 103
},
"hsl": {
"h": 257.468,
"s": 62.205,
"l": 24.902
},
"oklch": {
"l": 0.29605,
"c": 0.12873,
"h": 289.4
},
"luminance": 0.02237
}Semantic roles & 50–950 ramp
primary
#2F1867
secondary
#819D3E
accent
#E543B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E