#2A156F#2A156F
#2A156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.143 H 284.1°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A156F |
|---|---|
| RGB | rgb(42, 21, 111) |
| HSL | hsl(254, 68%, 26%) |
| HSV | hsv(254, 81%, 44%) |
| CMYK | cmyk(62.2%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.39, 35.64, -48.01) |
| CIE-LCH | lch(16.39, 59.79, 306.59°) |
| OKLab | oklab(29.52% 0.0349 -0.1384) |
| OKLCH | oklch(29.52% 0.143 284.1) |
| XYZ | xyz(4.0914, 2.1760, 15.2403) |
| Luminance | 0.0218 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Dark Royal Blue
#02066F
ΔE00 4.40
Indigo (survey)
#380282
ΔE00 4.57
Darkblue (survey)
#030764
ΔE00 4.62
Deep Blue
#040273
ΔE00 4.76
Dark Indigo
#1F0954
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A156F #5A6F15
analogous
#152D6F #2A156F #57156F
triadic
#2A156F #6F2A15 #156F2A
tetradic
#2A156F #6F152D #5A6F15 #156F57
square
#2A156F #6F152D #5A6F15 #156F57
split-complementary
#2A156F #6F5715 #2D6F15
monochromatic
#0A051A #170B3C #2A156F #3D1FA2 #5128D6
Accessibility & contrast
On white
14.63
#2A156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2A156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A156F
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A156F | 1.00 | 14.63 | 1.44 | 14.63 |
| #FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a156f; /* rgb */ color: rgb(42, 21, 111); /* oklch */ color: oklch(29.5% 0.143 284.1);
Tailwind
colors: {
custom: {
50: '#6d5599',
500: '#2a156f',
950: '#000000',
},
}SCSS
$custom: #2a156f; $custom-light: #6d5599; $custom-dark: #000000;
JSON
{
"hex": "#2a156f",
"rgb": {
"r": 42,
"g": 21,
"b": 111
},
"hsl": {
"h": 254,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29515,
"c": 0.14269,
"h": 284.1
},
"luminance": 0.02176
}Semantic roles & 50–950 ramp
primary
#2A156F
secondary
#8CA53A
accent
#EB3DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E