#2F1A8F#2F1A8F
#2F1A8F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.176 H 279.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A8F |
|---|---|
| RGB | rgb(47, 26, 143) |
| HSL | hsl(251, 69%, 33%) |
| HSV | hsv(251, 82%, 56%) |
| CMYK | cmyk(67.1%, 81.8%, 0%, 43.9%) |
| CIE-LAB | lab(21.30, 43.65, -60.21) |
| CIE-LCH | lch(21.30, 74.37, 305.94°) |
| OKLab | oklab(34.12% 0.0298 -0.1738) |
| OKLCH | oklch(34.12% 0.176 279.7) |
| XYZ | xyz(6.4980, 3.3258, 26.2808) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.81
Indigo (survey)
#380282
ΔE00 4.19
Cobalt Blue
#030AA7
ΔE00 4.37
Royal Blue (survey)
#0504AA
ΔE00 4.80
Indigo Blue
#3A18B1
ΔE00 4.90
Darkblue
#00008B
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A8F #7A8F1A
analogous
#1A3F8F #2F1A8F #691A8F
triadic
#2F1A8F #8F2F1A #1A8F2F
tetradic
#2F1A8F #8F1A3F #7A8F1A #1A8F69
square
#2F1A8F #8F1A3F #7A8F1A #1A8F69
split-complementary
#2F1A8F #8F691A #3F8F1A
monochromatic
#0D0727 #1E115B #2F1A8F #4023C3 #6146DD
Accessibility & contrast
On white
12.61
#2F1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A8F
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A8F | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1a8f; /* rgb */ color: rgb(47, 26, 143); /* oklch */ color: oklch(34.1% 0.176 279.7);
Tailwind
colors: {
custom: {
50: '#765bb1',
500: '#2f1a8f',
950: '#000000',
},
}SCSS
$custom: #2f1a8f; $custom-light: #765bb1; $custom-dark: #000000;
JSON
{
"hex": "#2f1a8f",
"rgb": {
"r": 47,
"g": 26,
"b": 143
},
"hsl": {
"h": 250.769,
"s": 69.231,
"l": 33.137
},
"oklch": {
"l": 0.34117,
"c": 0.17636,
"h": 279.7
},
"luminance": 0.03326
}Semantic roles & 50–950 ramp
primary
#2F1A8F
secondary
#A9BF46
accent
#EC3CCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980