#2F1C8C#2F1C8C
#2F1C8C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.171 H 280.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C8C |
|---|---|
| RGB | rgb(47, 28, 140) |
| HSL | hsl(250, 67%, 33%) |
| HSV | hsv(250, 80%, 55%) |
| CMYK | cmyk(66.4%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(21.31, 41.74, -58.33) |
| CIE-LCH | lch(21.31, 71.72, 305.59°) |
| OKLab | oklab(34.02% 0.0296 -0.1684) |
| OKLCH | oklch(34.02% 0.171 280) |
| XYZ | xyz(6.3197, 3.3278, 25.1152) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Indigo (survey)
#380282
ΔE00 4.39
Cobalt Blue
#030AA7
ΔE00 4.89
Midnight Blue
#191970
ΔE00 5.05
Darkblue
#00008B
ΔE00 5.31
Royal Blue (survey)
#0504AA
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C8C #798C1C
analogous
#1C418C #2F1C8C #671C8C
triadic
#2F1C8C #8C2F1C #1C8C2F
tetradic
#2F1C8C #8C1C41 #798C1C #1C8C67
square
#2F1C8C #8C1C41 #798C1C #1C8C67
split-complementary
#2F1C8C #8C671C #418C1C
monochromatic
#0D0826 #1E1259 #2F1C8C #4026BF #6148DA
Accessibility & contrast
On white
12.61
#2F1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C8C
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C8C | 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)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1c8c; /* rgb */ color: rgb(47, 28, 140); /* oklch */ color: oklch(34.0% 0.171 280.0);
Tailwind
colors: {
custom: {
50: '#755caf',
500: '#2f1c8c',
950: '#000000',
},
}SCSS
$custom: #2f1c8c; $custom-light: #755caf; $custom-dark: #000000;
JSON
{
"hex": "#2f1c8c",
"rgb": {
"r": 47,
"g": 28,
"b": 140
},
"hsl": {
"h": 250.179,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.34023,
"c": 0.17096,
"h": 280
},
"luminance": 0.03328
}Semantic roles & 50–950 ramp
primary
#2F1C8C
secondary
#A8BC48
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F