#2A0F5E#2A0F5E
#2A0F5E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.128 H 290.6°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F5E |
|---|---|
| RGB | rgb(42, 15, 94) |
| HSL | hsl(261, 72%, 21%) |
| HSV | hsv(261, 84%, 37%) |
| CMYK | cmyk(55.3%, 84%, 0%, 63.1%) |
| CIE-LAB | lab(13.48, 33.45, -41.57) |
| CIE-LCH | lch(13.48, 53.36, 308.82°) |
| OKLab | oklab(26.94% 0.045 -0.1195) |
| OKLCH | oklch(26.94% 0.128 290.6) |
| XYZ | xyz(3.1455, 1.6419, 10.7387) |
| Luminance | 0.0164 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.31
Darkblue (survey)
#030764
ΔE00 4.81
Midnight Blue
#191970
ΔE00 4.95
Dark Blue
#00035B
ΔE00 5.12
Dark Royal Blue
#02066F
ΔE00 5.52
Deep Blue
#040273
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F5E #435E0F
analogous
#0F1C5E #2A0F5E #520F5E
triadic
#2A0F5E #5E2A0F #0F5E2A
tetradic
#2A0F5E #5E0F1C #435E0F #0F5E52
square
#2A0F5E #5E0F1C #435E0F #0F5E52
split-complementary
#2A0F5E #5E520F #1C5E0F
monochromatic
#0C041A #120729 #2A0F5E #421793 #5920C8
Accessibility & contrast
On white
15.81
#2A0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2A0F5E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F5E
15.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F5E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F5E | 1.00 | 15.81 | 1.33 | 15.81 |
| #FFFFFF | 15.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#172636
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2a0f5e; /* rgb */ color: rgb(42, 15, 94); /* oklch */ color: oklch(26.9% 0.128 290.6);
Tailwind
colors: {
custom: {
50: '#6b518c',
500: '#2a0f5e',
950: '#000000',
},
}SCSS
$custom: #2a0f5e; $custom-light: #6b518c; $custom-dark: #000000;
JSON
{
"hex": "#2a0f5e",
"rgb": {
"r": 42,
"g": 15,
"b": 94
},
"hsl": {
"h": 260.506,
"s": 72.477,
"l": 21.373
},
"oklch": {
"l": 0.26937,
"c": 0.12767,
"h": 290.6
},
"luminance": 0.01642
}Semantic roles & 50–950 ramp
primary
#2A0F5E
secondary
#759731
accent
#EF39B1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D