#2F1390#2F1390
#2F1390 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.183 H 280.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1390 |
|---|---|
| RGB | rgb(47, 19, 144) |
| HSL | hsl(253, 77%, 32%) |
| HSV | hsv(253, 87%, 56%) |
| CMYK | cmyk(67.4%, 86.8%, 0%, 43.5%) |
| CIE-LAB | lab(20.37, 47.03, -62.37) |
| CIE-LCH | lch(20.37, 78.11, 307.02°) |
| OKLab | oklab(33.51% 0.0326 -0.18) |
| OKLCH | oklch(33.51% 0.183 280.3) |
| XYZ | xyz(6.4376, 3.0832, 26.6360) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.92
Indigo (survey)
#380282
ΔE00 3.31
Cobalt Blue
#030AA7
ΔE00 3.84
Royal Blue (survey)
#0504AA
ΔE00 4.16
Darkblue
#00008B
ΔE00 4.17
Ultramarine
#2000B1
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1390 #749013
analogous
#133690 #2F1390 #6E1390
triadic
#2F1390 #902F13 #13902F
tetradic
#2F1390 #901336 #749013 #13906E
square
#2F1390 #901336 #749013 #13906E
split-complementary
#2F1390 #906E13 #369013
monochromatic
#0C0524 #1D0C5A #2F1390 #411AC6 #5F39E5
Accessibility & contrast
On white
12.99
#2F1390 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F1390 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1390
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1390 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1390 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1390; /* rgb */ color: rgb(47, 19, 144); /* oklch */ color: oklch(33.5% 0.183 280.3);
Tailwind
colors: {
custom: {
50: '#7757b2',
500: '#2f1390',
950: '#000000',
},
}SCSS
$custom: #2f1390; $custom-light: #7757b2; $custom-dark: #000000;
JSON
{
"hex": "#2f1390",
"rgb": {
"r": 47,
"g": 19,
"b": 144
},
"hsl": {
"h": 253.44,
"s": 76.687,
"l": 31.961
},
"oklch": {
"l": 0.33511,
"c": 0.18294,
"h": 280.3
},
"luminance": 0.03084
}Semantic roles & 50–950 ramp
primary
#2F1390
secondary
#A5C43B
accent
#F335C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880