#2A0F4E#2A0F4E
#2A0F4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.108 H 297.6°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F4E |
|---|---|
| RGB | rgb(42, 15, 78) |
| HSL | hsl(266, 68%, 18%) |
| HSV | hsv(266, 81%, 31%) |
| CMYK | cmyk(46.2%, 80.8%, 0%, 69.4%) |
| CIE-LAB | lab(11.85, 28.66, -33.39) |
| CIE-LCH | lch(11.85, 44.00, 310.65°) |
| OKLab | oklab(25.29% 0.0499 -0.0955) |
| OKLCH | oklch(25.29% 0.108 297.6) |
| XYZ | xyz(2.5005, 1.3839, 7.3416) |
| Luminance | 0.0138 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.21
Midnight Purple
#280137
ΔE00 5.53
Dark Violet
#34013F
ΔE00 5.73
Dark Purple
#35063E
ΔE00 5.95
Night Blue
#040348
ΔE00 6.04
Deep Purple
#36013F
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F4E #334E0F
analogous
#0F134E #2A0F4E #490F4E
triadic
#2A0F4E #4E2A0F #0F4E2A
tetradic
#2A0F4E #4E0F13 #334E0F #0F4E49
square
#2A0F4E #4E0F13 #334E0F #0F4E49
split-complementary
#2A0F4E #4E490F #134E0F
monochromatic
#0E051A #0E051B #2A0F4E #461981 #6123B5
Accessibility & contrast
On white
16.45
#2A0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.28
#2A0F4E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F4E
16.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F4E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F4E | 1.00 | 16.45 | 1.28 | 16.45 |
| #FFFFFF | 16.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#211F2D
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #2a0f4e; /* rgb */ color: rgb(42, 15, 78); /* oklch */ color: oklch(25.3% 0.108 297.6);
Tailwind
colors: {
custom: {
50: '#685080',
500: '#2a0f4e',
950: '#000000',
},
}SCSS
$custom: #2a0f4e; $custom-light: #685080; $custom-dark: #000000;
JSON
{
"hex": "#2a0f4e",
"rgb": {
"r": 42,
"g": 15,
"b": 78
},
"hsl": {
"h": 265.714,
"s": 67.742,
"l": 18.235
},
"oklch": {
"l": 0.25293,
"c": 0.10775,
"h": 297.6
},
"luminance": 0.01384
}Semantic roles & 50–950 ramp
primary
#2A0F4E
secondary
#638831
accent
#EB3DA0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C