#2F1190#2F1190
#2F1190 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.184 H 280.4°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1190 |
|---|---|
| RGB | rgb(47, 17, 144) |
| HSL | hsl(254, 79%, 32%) |
| HSV | hsv(254, 88%, 56%) |
| CMYK | cmyk(67.4%, 88.2%, 0%, 43.5%) |
| CIE-LAB | lab(20.12, 47.79, -62.80) |
| CIE-LCH | lch(20.12, 78.91, 307.27°) |
| OKLab | oklab(33.34% 0.0334 -0.1812) |
| OKLCH | oklch(33.34% 0.184 280.4) |
| XYZ | xyz(6.4052, 3.0183, 26.6252) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.03
Indigo (survey)
#380282
ΔE00 3.11
Cobalt Blue
#030AA7
ΔE00 3.79
Darkblue
#00008B
ΔE00 4.00
Royal Blue (survey)
#0504AA
ΔE00 4.08
Ultramarine
#2000B1
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1190 #729011
analogous
#113390 #2F1190 #6F1190
triadic
#2F1190 #902F11 #11902F
tetradic
#2F1190 #901133 #729011 #11906F
square
#2F1190 #901133 #729011 #11906F
split-complementary
#2F1190 #906F11 #339011
monochromatic
#0B0423 #1D0B59 #2F1190 #4117C7 #5F34E7
Accessibility & contrast
On white
13.09
#2F1190 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1190 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1190
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1190 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1190 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1190; /* rgb */ color: rgb(47, 17, 144); /* oklch */ color: oklch(33.3% 0.184 280.4);
Tailwind
colors: {
custom: {
50: '#7757b2',
500: '#2f1190',
950: '#000000',
},
}SCSS
$custom: #2f1190; $custom-light: #7757b2; $custom-dark: #000000;
JSON
{
"hex": "#2f1190",
"rgb": {
"r": 47,
"g": 17,
"b": 144
},
"hsl": {
"h": 254.173,
"s": 78.882,
"l": 31.569
},
"oklch": {
"l": 0.33335,
"c": 0.18426,
"h": 280.4
},
"luminance": 0.03019
}Semantic roles & 50–950 ramp
primary
#2F1190
secondary
#A3C439
accent
#F532C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880