#2A1180#2A1180
#2A1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.167 H 280.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1180 |
|---|---|
| RGB | rgb(42, 17, 128) |
| HSL | hsl(254, 77%, 28%) |
| HSV | hsv(254, 87%, 50%) |
| CMYK | cmyk(67.2%, 86.7%, 0%, 49.8%) |
| CIE-LAB | lab(17.70, 42.73, -56.76) |
| CIE-LCH | lch(17.70, 71.05, 306.97°) |
| OKLab | oklab(31% 0.0313 -0.1638) |
| OKLCH | oklch(31% 0.167 280.8) |
| XYZ | xyz(5.0503, 2.4513, 20.6249) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.73
Royal
#0C1793
ΔE00 3.75
Darkblue
#00008B
ΔE00 3.83
Navy
#000080
ΔE00 3.85
Midnight Blue
#191970
ΔE00 4.05
Deep Blue
#040273
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1180 #678011
analogous
#112F80 #2A1180 #611180
triadic
#2A1180 #802A11 #11802A
tetradic
#2A1180 #80112F #678011 #118061
square
#2A1180 #80112F #678011 #118061
split-complementary
#2A1180 #806111 #2F8011
monochromatic
#09041B #180A4A #2A1180 #3C18B6 #5329E3
Accessibility & contrast
On white
14.09
#2A1180 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2A1180 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1180
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1180 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1180 | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a1180; /* rgb */ color: rgb(42, 17, 128); /* oklch */ color: oklch(31.0% 0.167 280.8);
Tailwind
colors: {
custom: {
50: '#7155a6',
500: '#2a1180',
950: '#000000',
},
}SCSS
$custom: #2a1180; $custom-light: #7155a6; $custom-dark: #000000;
JSON
{
"hex": "#2a1180",
"rgb": {
"r": 42,
"g": 17,
"b": 128
},
"hsl": {
"h": 253.514,
"s": 76.552,
"l": 28.431
},
"oklch": {
"l": 0.31001,
"c": 0.16677,
"h": 280.8
},
"luminance": 0.02452
}Semantic roles & 50–950 ramp
primary
#2A1180
secondary
#99B637
accent
#F335C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F