#2F1490#2F1490
#2F1490 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.182 H 280.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1490 |
|---|---|
| RGB | rgb(47, 20, 144) |
| HSL | hsl(253, 76%, 32%) |
| HSV | hsv(253, 86%, 56%) |
| CMYK | cmyk(67.4%, 86.1%, 0%, 43.5%) |
| CIE-LAB | lab(20.51, 46.63, -62.15) |
| CIE-LCH | lch(20.51, 77.69, 306.88°) |
| OKLab | oklab(33.6% 0.0322 -0.1794) |
| OKLCH | oklch(33.6% 0.182 280.2) |
| XYZ | xyz(6.4549, 3.1177, 26.6418) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.88
Indigo (survey)
#380282
ΔE00 3.42
Cobalt Blue
#030AA7
ΔE00 3.88
Royal Blue (survey)
#0504AA
ΔE00 4.21
Darkblue
#00008B
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1490 #759014
analogous
#143790 #2F1490 #6D1490
triadic
#2F1490 #902F14 #14902F
tetradic
#2F1490 #901437 #759014 #14906D
square
#2F1490 #901437 #759014 #14906D
split-complementary
#2F1490 #906D14 #379014
monochromatic
#0C0525 #1D0D5A #2F1490 #411BC6 #5F3BE4
Accessibility & contrast
On white
12.93
#2F1490 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F1490 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1490
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1490 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1490 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1490; /* rgb */ color: rgb(47, 20, 144); /* oklch */ color: oklch(33.6% 0.182 280.2);
Tailwind
colors: {
custom: {
50: '#7758b2',
500: '#2f1490',
950: '#000000',
},
}SCSS
$custom: #2f1490; $custom-light: #7758b2; $custom-dark: #000000;
JSON
{
"hex": "#2f1490",
"rgb": {
"r": 47,
"g": 20,
"b": 144
},
"hsl": {
"h": 253.065,
"s": 75.61,
"l": 32.157
},
"oklch": {
"l": 0.33603,
"c": 0.18224,
"h": 280.2
},
"luminance": 0.03118
}Semantic roles & 50–950 ramp
primary
#2F1490
secondary
#A6C33D
accent
#F236C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980