#2A166F#2A166F
#2A166F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.142 H 283.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2A166F |
|---|---|
| RGB | rgb(42, 22, 111) |
| HSL | hsl(253, 67%, 26%) |
| HSV | hsv(253, 80%, 44%) |
| CMYK | cmyk(62.2%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(16.57, 35.11, -47.70) |
| CIE-LCH | lch(16.57, 59.23, 306.36°) |
| OKLab | oklab(29.65% 0.0342 -0.1375) |
| OKLCH | oklch(29.65% 0.142 283.9) |
| XYZ | xyz(4.1101, 2.2135, 15.2465) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Dark Royal Blue
#02066F
ΔE00 4.54
Darkblue (survey)
#030764
ΔE00 4.73
Indigo (survey)
#380282
ΔE00 4.74
Deep Blue
#040273
ΔE00 4.92
Dark Indigo
#1F0954
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A166F #5B6F16
analogous
#162E6F #2A166F #56166F
triadic
#2A166F #6F2A16 #166F2A
tetradic
#2A166F #6F162E #5B6F16 #166F56
square
#2A166F #6F162E #5B6F16 #166F56
split-complementary
#2A166F #6F5616 #2E6F16
monochromatic
#0A051A #170C3C #2A166F #3D20A2 #512BD5
Accessibility & contrast
On white
14.56
#2A166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2A166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A166F
14.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A166F | 1.00 | 14.56 | 1.44 | 14.56 |
| #FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a166f; /* rgb */ color: rgb(42, 22, 111); /* oklch */ color: oklch(29.6% 0.142 283.9);
Tailwind
colors: {
custom: {
50: '#6d5699',
500: '#2a166f',
950: '#000000',
},
}SCSS
$custom: #2a166f; $custom-light: #6d5699; $custom-dark: #000000;
JSON
{
"hex": "#2a166f",
"rgb": {
"r": 42,
"g": 22,
"b": 111
},
"hsl": {
"h": 253.483,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.29645,
"c": 0.14166,
"h": 283.9
},
"luminance": 0.02214
}Semantic roles & 50–950 ramp
primary
#2A166F
secondary
#8DA53C
accent
#EA3EC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E