#2A0F5D#2A0F5D
#2A0F5D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.126 H 291.0°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F5D |
|---|---|
| RGB | rgb(42, 15, 93) |
| HSL | hsl(261, 72%, 21%) |
| HSV | hsv(261, 84%, 36%) |
| CMYK | cmyk(54.8%, 83.9%, 0%, 63.5%) |
| CIE-LAB | lab(13.38, 33.15, -41.08) |
| CIE-LCH | lch(13.38, 52.78, 308.90°) |
| OKLab | oklab(26.83% 0.0453 -0.118) |
| OKLCH | oklch(26.83% 0.126 291) |
| XYZ | xyz(3.1009, 1.6241, 10.5039) |
| Luminance | 0.0162 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.23
Darkblue (survey)
#030764
ΔE00 4.92
Midnight Blue
#191970
ΔE00 5.09
Dark Blue
#00035B
ΔE00 5.18
Dark Royal Blue
#02066F
ΔE00 5.67
Night Blue
#040348
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F5D #425D0F
analogous
#0F1B5D #2A0F5D #510F5D
triadic
#2A0F5D #5D2A0F #0F5D2A
tetradic
#2A0F5D #5D0F1B #425D0F #0F5D51
square
#2A0F5D #5D0F1B #425D0F #0F5D51
split-complementary
#2A0F5D #5D510F #1B5D0F
monochromatic
#0C041A #120628 #2A0F5D #421792 #5A20C6
Accessibility & contrast
On white
15.85
#2A0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#2A0F5D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F5D
15.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F5D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F5D | 1.00 | 15.85 | 1.32 | 15.85 |
| #FFFFFF | 15.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#182536
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #2a0f5d; /* rgb */ color: rgb(42, 15, 93); /* oklch */ color: oklch(26.8% 0.126 291.0);
Tailwind
colors: {
custom: {
50: '#6a518c',
500: '#2a0f5d',
950: '#000000',
},
}SCSS
$custom: #2a0f5d; $custom-light: #6a518c; $custom-dark: #000000;
JSON
{
"hex": "#2a0f5d",
"rgb": {
"r": 42,
"g": 15,
"b": 93
},
"hsl": {
"h": 260.769,
"s": 72.222,
"l": 21.176
},
"oklch": {
"l": 0.2683,
"c": 0.12645,
"h": 291
},
"luminance": 0.01624
}Semantic roles & 50–950 ramp
primary
#2A0F5D
secondary
#739631
accent
#EF39B0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D