#2A0F6A#2A0F6A
#2A0F6A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.142 H 286.6°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F6A |
|---|---|
| RGB | rgb(42, 15, 106) |
| HSL | hsl(258, 75%, 24%) |
| HSV | hsv(258, 86%, 42%) |
| CMYK | cmyk(60.4%, 85.8%, 0%, 58.4%) |
| CIE-LAB | lab(14.81, 37.04, -47.33) |
| CIE-LCH | lch(14.81, 60.10, 308.05°) |
| OKLab | oklab(28.26% 0.0406 -0.1363) |
| OKLCH | oklch(28.26% 0.142 286.6) |
| XYZ | xyz(3.7264, 1.8743, 13.7983) |
| Luminance | 0.0187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.75
Dark Indigo
#1F0954
ΔE00 3.93
Dark Royal Blue
#02066F
ΔE00 4.13
Darkblue (survey)
#030764
ΔE00 4.14
Deep Blue
#040273
ΔE00 4.41
Indigo (survey)
#380282
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F6A #4F6A0F
analogous
#0F216A #2A0F6A #570F6A
triadic
#2A0F6A #6A2A0F #0F6A2A
tetradic
#2A0F6A #6A0F21 #4F6A0F #0F6A57
square
#2A0F6A #6A0F21 #4F6A0F #0F6A57
split-complementary
#2A0F6A #6A570F #216A0F
monochromatic
#0B041B #150734 #2A0F6A #3F17A0 #541ED5
Accessibility & contrast
On white
15.27
#2A0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2A0F6A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F6A
15.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F6A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F6A | 1.00 | 15.27 | 1.37 | 15.27 |
| #FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#0A2B3D
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2a0f6a; /* rgb */ color: rgb(42, 15, 106); /* oklch */ color: oklch(28.3% 0.142 286.6);
Tailwind
colors: {
custom: {
50: '#6d5296',
500: '#2a0f6a',
950: '#000000',
},
}SCSS
$custom: #2a0f6a; $custom-light: #6d5296; $custom-dark: #000000;
JSON
{
"hex": "#2a0f6a",
"rgb": {
"r": 42,
"g": 15,
"b": 106
},
"hsl": {
"h": 257.802,
"s": 75.207,
"l": 23.725
},
"oklch": {
"l": 0.28257,
"c": 0.14225,
"h": 286.6
},
"luminance": 0.01874
}Semantic roles & 50–950 ramp
primary
#2A0F6A
secondary
#81A232
accent
#F236BA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020D
muted
#7A787E