#2F0F6A#2F0F6A
#2F0F6A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.142 H 290.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F0F6A |
|---|---|
| RGB | rgb(47, 15, 106) |
| HSL | hsl(261, 75%, 24%) |
| HSV | hsv(261, 86%, 42%) |
| CMYK | cmyk(55.7%, 85.8%, 0%, 58.4%) |
| CIE-LAB | lab(15.42, 37.69, -46.32) |
| CIE-LCH | lch(15.42, 59.71, 309.13°) |
| OKLab | oklab(28.81% 0.0492 -0.1332) |
| OKLCH | oklch(28.81% 0.142 290.3) |
| XYZ | xyz(3.9439, 1.9864, 13.8085) |
| Luminance | 0.0199 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.18
Indigo (survey)
#380282
ΔE00 4.30
Midnight Blue
#191970
ΔE00 4.41
Dark Royal Blue
#02066F
ΔE00 4.88
Darkblue (survey)
#030764
ΔE00 4.92
Deep Blue
#040273
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F0F6A #4A6A0F
analogous
#0F1C6A #2F0F6A #5C0F6A
triadic
#2F0F6A #6A2F0F #0F6A2F
tetradic
#2F0F6A #6A0F1C #4A6A0F #0F6A5C
square
#2F0F6A #6A0F1C #4A6A0F #0F6A5C
split-complementary
#2F0F6A #6A5C0F #1C6A0F
monochromatic
#0C041B #170734 #2F0F6A #4717A0 #5F1ED5
Accessibility & contrast
On white
15.03
#2F0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2F0F6A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F0F6A
15.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F0F6A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F0F6A | 1.00 | 15.03 | 1.40 | 15.03 |
| #FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#192A3D
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2f0f6a; /* rgb */ color: rgb(47, 15, 106); /* oklch */ color: oklch(28.8% 0.142 290.3);
Tailwind
colors: {
custom: {
50: '#705396',
500: '#2f0f6a',
950: '#000000',
},
}SCSS
$custom: #2f0f6a; $custom-light: #705396; $custom-dark: #000000;
JSON
{
"hex": "#2f0f6a",
"rgb": {
"r": 47,
"g": 15,
"b": 106
},
"hsl": {
"h": 261.099,
"s": 75.207,
"l": 23.725
},
"oklch": {
"l": 0.28813,
"c": 0.142,
"h": 290.3
},
"luminance": 0.01987
}Semantic roles & 50–950 ramp
primary
#2F0F6A
secondary
#7BA232
accent
#F236B0
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020D
muted
#7B787E