#2F1966#2F1966
#2F1966 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.126 H 289.5°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1966 |
|---|---|
| RGB | rgb(47, 25, 102) |
| HSL | hsl(257, 61%, 25%) |
| HSV | hsv(257, 75%, 40%) |
| CMYK | cmyk(53.9%, 75.5%, 0%, 60%) |
| CIE-LAB | lab(16.79, 31.38, -41.43) |
| CIE-LCH | lch(16.79, 51.97, 307.14°) |
| OKLab | oklab(29.65% 0.0421 -0.119) |
| OKLCH | oklch(29.65% 0.126 289.5) |
| XYZ | xyz(3.9175, 2.2587, 12.7974) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.01
Dark Indigo
#1F0954
ΔE00 4.43
Darkblue (survey)
#030764
ΔE00 5.93
Indigo (survey)
#380282
ΔE00 6.27
Dark Royal Blue
#02066F
ΔE00 6.27
Dark Blue
#00035B
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1966 #506619
analogous
#192966 #2F1966 #561966
triadic
#2F1966 #662F19 #19662F
tetradic
#2F1966 #661929 #506619 #196656
square
#2F1966 #661929 #506619 #196656
split-complementary
#2F1966 #665619 #296619
monochromatic
#0B0619 #180D35 #2F1966 #462597 #5C31C8
Accessibility & contrast
On white
14.46
#2F1966 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2F1966 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1966
14.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1966 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1966 | 1.00 | 14.46 | 1.45 | 14.46 |
| #FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1B2D3D
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f1966; /* rgb */ color: rgb(47, 25, 102); /* oklch */ color: oklch(29.7% 0.126 289.5);
Tailwind
colors: {
custom: {
50: '#6e5892',
500: '#2f1966',
950: '#000000',
},
}SCSS
$custom: #2f1966; $custom-light: #6e5892; $custom-dark: #000000;
JSON
{
"hex": "#2f1966",
"rgb": {
"r": 47,
"g": 25,
"b": 102
},
"hsl": {
"h": 257.143,
"s": 60.63,
"l": 24.902
},
"oklch": {
"l": 0.29651,
"c": 0.12619,
"h": 289.5
},
"luminance": 0.02259
}Semantic roles & 50–950 ramp
primary
#2F1966
secondary
#819C3F
accent
#E444B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E