#2F11A0#2F11A0
#2F11A0 is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.3% C 0.202 H 277.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F11A0 |
|---|---|
| RGB | rgb(47, 17, 160) |
| HSL | hsl(253, 81%, 35%) |
| HSV | hsv(253, 89%, 63%) |
| CMYK | cmyk(70.6%, 89.4%, 0%, 37.3%) |
| CIE-LAB | lab(22.10, 52.28, -69.37) |
| CIE-LCH | lch(22.10, 86.87, 307.00°) |
| OKLab | oklab(35.25% 0.0274 -0.2003) |
| OKLCH | oklch(35.25% 0.202 277.8) |
| XYZ | xyz(7.7159, 3.5426, 33.5281) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.58
Ultramarine
#2000B1
ΔE00 2.59
Royal Blue (survey)
#0504AA
ΔE00 2.75
Indigo Blue
#3A18B1
ΔE00 2.94
Royal
#0C1793
ΔE00 3.48
Indigo (survey)
#380282
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F11A0 #82A011
analogous
#113BA0 #2F11A0 #7611A0
triadic
#2F11A0 #A02F11 #11A02F
tetradic
#2F11A0 #A0113B #82A011 #11A076
square
#2F11A0 #A0113B #82A011 #11A076
split-complementary
#2F11A0 #A07611 #3BA011
monochromatic
#0E0531 #1F0B69 #2F11A0 #3F17D7 #6441EB
Accessibility & contrast
On white
12.29
#2F11A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2F11A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F11A0
12.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F11A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F11A0 | 1.00 | 12.29 | 1.71 | 12.29 |
| #FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f11a0; /* rgb */ color: rgb(47, 17, 160); /* oklch */ color: oklch(35.3% 0.202 277.8);
Tailwind
colors: {
custom: {
50: '#7b58be',
500: '#2f11a0',
950: '#000000',
},
}SCSS
$custom: #2f11a0; $custom-light: #7b58be; $custom-dark: #000000;
JSON
{
"hex": "#2f11a0",
"rgb": {
"r": 47,
"g": 17,
"b": 160
},
"hsl": {
"h": 252.587,
"s": 80.791,
"l": 34.706
},
"oklch": {
"l": 0.3525,
"c": 0.20216,
"h": 277.8
},
"luminance": 0.03543
}Semantic roles & 50–950 ramp
primary
#2F11A0
secondary
#AECB42
accent
#F731CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981