#2F1982#2F1982
#2F1982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.162 H 282.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1982 |
|---|---|
| RGB | rgb(47, 25, 130) |
| HSL | hsl(253, 68%, 30%) |
| HSV | hsv(253, 81%, 51%) |
| CMYK | cmyk(63.8%, 80.8%, 0%, 49%) |
| CIE-LAB | lab(19.68, 40.15, -54.73) |
| CIE-LCH | lch(19.68, 67.88, 306.26°) |
| OKLab | oklab(32.56% 0.0344 -0.1579) |
| OKLCH | oklch(32.56% 0.162 282.3) |
| XYZ | xyz(5.5479, 2.9109, 21.3843) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.62
Royal
#0C1793
ΔE00 3.78
Midnight Blue
#191970
ΔE00 4.00
Darkblue
#00008B
ΔE00 5.11
Navy
#000080
ΔE00 5.31
Indigo
#4B0082
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1982 #6C8219
analogous
#193882 #2F1982 #631982
triadic
#2F1982 #822F19 #19822F
tetradic
#2F1982 #821938 #6C8219 #198263
square
#2F1982 #821938 #6C8219 #198263
split-complementary
#2F1982 #826319 #388219
monochromatic
#0A051B #1C0F4F #2F1982 #4223B5 #5D3CD9
Accessibility & contrast
On white
13.27
#2F1982 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1982 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1982
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1982 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1982 | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1982; /* rgb */ color: rgb(47, 25, 130); /* oklch */ color: oklch(32.6% 0.162 282.3);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2f1982',
950: '#000000',
},
}SCSS
$custom: #2f1982; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1982",
"rgb": {
"r": 47,
"g": 25,
"b": 130
},
"hsl": {
"h": 252.571,
"s": 67.742,
"l": 30.392
},
"oklch": {
"l": 0.32561,
"c": 0.16156,
"h": 282.3
},
"luminance": 0.02911
}Semantic roles & 50–950 ramp
primary
#2F1982
secondary
#9DB641
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F