#2A156B#2A156B
#2A156B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.138 H 285.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2A156B |
|---|---|
| RGB | rgb(42, 21, 107) |
| HSL | hsl(255, 67%, 25%) |
| HSV | hsv(255, 80%, 42%) |
| CMYK | cmyk(60.7%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(15.95, 34.38, -46.11) |
| CIE-LCH | lch(15.95, 57.51, 306.71°) |
| OKLab | oklab(29.08% 0.0361 -0.1328) |
| OKLCH | oklch(29.08% 0.138 285.2) |
| XYZ | xyz(3.8760, 2.0899, 14.1062) |
| Luminance | 0.0209 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Dark Indigo
#1F0954
ΔE00 4.35
Darkblue (survey)
#030764
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 4.64
Deep Blue
#040273
ΔE00 5.07
Indigo (survey)
#380282
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A156B #566B15
analogous
#152B6B #2A156B #55156B
triadic
#2A156B #6B2A15 #156B2A
tetradic
#2A156B #6B152B #566B15 #156B55
square
#2A156B #6B152B #566B15 #156B55
split-complementary
#2A156B #6B5515 #2B6B15
monochromatic
#0A051A #160B38 #2A156B #3E1F9E #5229D1
Accessibility & contrast
On white
14.81
#2A156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2A156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A156B
14.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A156B | 1.00 | 14.81 | 1.42 | 14.81 |
| #FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#072E3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2a156b; /* rgb */ color: rgb(42, 21, 107); /* oklch */ color: oklch(29.1% 0.138 285.2);
Tailwind
colors: {
custom: {
50: '#6d5596',
500: '#2a156b',
950: '#000000',
},
}SCSS
$custom: #2a156b; $custom-light: #6d5596; $custom-dark: #000000;
JSON
{
"hex": "#2a156b",
"rgb": {
"r": 42,
"g": 21,
"b": 107
},
"hsl": {
"h": 254.651,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.29082,
"c": 0.13764,
"h": 285.2
},
"luminance": 0.0209
}Semantic roles & 50–950 ramp
primary
#2A156B
secondary
#88A23A
accent
#EA3EC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E