#2F0F5D#2F0F5D
#2F0F5D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.127 H 295.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F0F5D |
|---|---|
| RGB | rgb(47, 15, 93) |
| HSL | hsl(265, 72%, 21%) |
| HSV | hsv(265, 84%, 36%) |
| CMYK | cmyk(49.5%, 83.9%, 0%, 63.5%) |
| CIE-LAB | lab(14.04, 33.95, -39.97) |
| CIE-LCH | lch(14.04, 52.44, 310.34°) |
| OKLab | oklab(27.44% 0.0539 -0.1146) |
| OKLCH | oklch(27.44% 0.127 295.2) |
| XYZ | xyz(3.3184, 1.7362, 10.5141) |
| Luminance | 0.0174 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.91
Darkblue (survey)
#030764
ΔE00 5.80
Midnight Blue
#191970
ΔE00 5.80
Royal Purple (survey)
#4B006E
ΔE00 5.83
Dark Blue
#00035B
ΔE00 6.03
Dark Royal Blue
#02066F
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F0F5D #3D5D0F
analogous
#0F165D #2F0F5D #560F5D
triadic
#2F0F5D #5D2F0F #0F5D2F
tetradic
#2F0F5D #5D0F16 #3D5D0F #0F5D56
square
#2F0F5D #5D0F16 #3D5D0F #0F5D56
split-complementary
#2F0F5D #5D560F #165D0F
monochromatic
#0D041A #140628 #2F0F5D #4A1792 #6420C6
Accessibility & contrast
On white
15.59
#2F0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2F0F5D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F0F5D
15.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F0F5D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F0F5D | 1.00 | 15.59 | 1.35 | 15.59 |
| #FFFFFF | 15.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#222536
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2f0f5d; /* rgb */ color: rgb(47, 15, 93); /* oklch */ color: oklch(27.4% 0.127 295.2);
Tailwind
colors: {
custom: {
50: '#6d528c',
500: '#2f0f5d',
950: '#000000',
},
}SCSS
$custom: #2f0f5d; $custom-light: #6d528c; $custom-dark: #000000;
JSON
{
"hex": "#2f0f5d",
"rgb": {
"r": 47,
"g": 15,
"b": 93
},
"hsl": {
"h": 264.615,
"s": 72.222,
"l": 21.176
},
"oklch": {
"l": 0.2744,
"c": 0.12665,
"h": 295.2
},
"luminance": 0.01736
}Semantic roles & 50–950 ramp
primary
#2F0F5D
secondary
#6D9631
accent
#EF39A4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D