#2A167B#2A167B
#2A167B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.157 H 281.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A167B |
|---|---|
| RGB | rgb(42, 22, 123) |
| HSL | hsl(252, 70%, 28%) |
| HSV | hsv(252, 82%, 48%) |
| CMYK | cmyk(65.9%, 82.1%, 0%, 51.8%) |
| CIE-LAB | lab(17.90, 38.90, -53.24) |
| CIE-LCH | lch(17.90, 65.94, 306.15°) |
| OKLab | oklab(30.97% 0.0305 -0.1536) |
| OKLCH | oklch(30.97% 0.157 281.2) |
| XYZ | xyz(4.8158, 2.4958, 18.9630) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.06
Indigo (survey)
#380282
ΔE00 3.66
Royal
#0C1793
ΔE00 4.21
Dark Royal Blue
#02066F
ΔE00 4.55
Navy
#000080
ΔE00 4.65
Deep Blue
#040273
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A167B #677B16
analogous
#16347B #2A167B #5C167B
triadic
#2A167B #7B2A16 #167B2A
tetradic
#2A167B #7B1634 #677B16 #167B5C
square
#2A167B #7B1634 #677B16 #167B5C
split-complementary
#2A167B #7B5C16 #347B16
monochromatic
#09051A #180D47 #2A167B #3C1FAF #5331DA
Accessibility & contrast
On white
14.01
#2A167B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2A167B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A167B
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A167B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A167B | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2a167b; /* rgb */ color: rgb(42, 22, 123); /* oklch */ color: oklch(31.0% 0.157 281.2);
Tailwind
colors: {
custom: {
50: '#7057a2',
500: '#2a167b',
950: '#000000',
},
}SCSS
$custom: #2a167b; $custom-light: #7057a2; $custom-dark: #000000;
JSON
{
"hex": "#2a167b",
"rgb": {
"r": 42,
"g": 22,
"b": 123
},
"hsl": {
"h": 251.881,
"s": 69.655,
"l": 28.431
},
"oklch": {
"l": 0.30969,
"c": 0.15663,
"h": 281.2
},
"luminance": 0.02496
}Semantic roles & 50–950 ramp
primary
#2A167B
secondary
#99B03D
accent
#EC3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F