#2A0F3F#2A0F3F
#2A0F3F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.089 H 306.7°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F3F |
|---|---|
| RGB | rgb(42, 15, 63) |
| HSL | hsl(274, 62%, 15%) |
| HSV | hsv(274, 76%, 25%) |
| CMYK | cmyk(33.3%, 76.2%, 0%, 75.3%) |
| CIE-LAB | lab(10.50, 24.32, -25.08) |
| CIE-LCH | lch(10.50, 34.93, 314.12°) |
| OKLab | oklab(23.91% 0.0529 -0.0711) |
| OKLCH | oklch(23.91% 0.089 306.7) |
| XYZ | xyz(2.0227, 1.1928, 4.8253) |
| Luminance | 0.0119 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Purple
#280137
ΔE00 3.44
Dark Purple
#35063E
ΔE00 3.89
Very Dark Purple
#2A0134
ΔE00 3.94
Dark Violet
#34013F
ΔE00 4.39
Deep Purple
#36013F
ΔE00 4.70
Eggplant
#380835
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F3F #243F0F
analogous
#120F3F #2A0F3F #3F0F3C
triadic
#2A0F3F #3F2A0F #0F3F2A
tetradic
#2A0F3F #3F120F #243F0F #0F3C3F
square
#2A0F3F #3F120F #243F0F #0F3C3F
split-complementary
#2A0F3F #3C3F0F #0F3F12
monochromatic
#100619 #100619 #2A0F3F #4B1B70 #6C27A2
Accessibility & contrast
On white
16.95
#2A0F3F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.24
#2A0F3F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F3F
16.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F3F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F3F | 1.00 | 16.95 | 1.24 | 16.95 |
| #FFFFFF | 16.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#041D3E
Tritanopia (blue-blind)
#261925
Achromatopsia (no color)
#1C1C1C
Design tokens & code
CSS
--color: #2a0f3f; /* rgb */ color: rgb(42, 15, 63); /* oklch */ color: oklch(23.9% 0.089 306.7);
Tailwind
colors: {
custom: {
50: '#664f74',
500: '#2a0f3f',
950: '#000000',
},
}SCSS
$custom: #2a0f3f; $custom-light: #664f74; $custom-dark: #000000;
JSON
{
"hex": "#2a0f3f",
"rgb": {
"r": 42,
"g": 15,
"b": 63
},
"hsl": {
"h": 273.75,
"s": 61.538,
"l": 15.294
},
"oklch": {
"l": 0.23913,
"c": 0.0886,
"h": 306.7
},
"luminance": 0.01193
}Semantic roles & 50–950 ramp
primary
#2A0F3F
secondary
#507930
accent
#E5438A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B