#2F1688#2F1688
#2F1688 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.171 H 281.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1688 |
|---|---|
| RGB | rgb(47, 22, 136) |
| HSL | hsl(253, 72%, 31%) |
| HSV | hsv(253, 84%, 53%) |
| CMYK | cmyk(65.4%, 83.8%, 0%, 46.7%) |
| CIE-LAB | lab(19.86, 43.41, -58.21) |
| CIE-LCH | lch(19.86, 72.62, 306.71°) |
| OKLab | oklab(32.89% 0.0341 -0.168) |
| OKLCH | oklch(32.89% 0.171 281.5) |
| XYZ | xyz(5.9017, 2.9553, 23.5472) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.17
Royal
#0C1793
ΔE00 3.22
Darkblue
#00008B
ΔE00 4.47
Midnight Blue
#191970
ΔE00 4.83
Cobalt Blue
#030AA7
ΔE00 4.92
Navy
#000080
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1688 #6F8816
analogous
#163688 #2F1688 #681688
triadic
#2F1688 #882F16 #16882F
tetradic
#2F1688 #881636 #6F8816 #168868
square
#2F1688 #881636 #6F8816 #168868
split-complementary
#2F1688 #886816 #368816
monochromatic
#0B051F #1D0D53 #2F1688 #411FBD #5E39DF
Accessibility & contrast
On white
13.20
#2F1688 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1688 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1688
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1688 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1688 | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1688; /* rgb */ color: rgb(47, 22, 136); /* oklch */ color: oklch(32.9% 0.171 281.5);
Tailwind
colors: {
custom: {
50: '#7558ac',
500: '#2f1688',
950: '#000000',
},
}SCSS
$custom: #2f1688; $custom-light: #7558ac; $custom-dark: #000000;
JSON
{
"hex": "#2f1688",
"rgb": {
"r": 47,
"g": 22,
"b": 136
},
"hsl": {
"h": 253.158,
"s": 72.152,
"l": 30.98
},
"oklch": {
"l": 0.32885,
"c": 0.1714,
"h": 281.5
},
"luminance": 0.02956
}Semantic roles & 50–950 ramp
primary
#2F1688
secondary
#A0BC3E
accent
#EF39C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F