#2A147B#2A147B
#2A147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.158 H 281.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2A147B |
|---|---|
| RGB | rgb(42, 20, 123) |
| HSL | hsl(253, 72%, 28%) |
| HSV | hsv(253, 84%, 48%) |
| CMYK | cmyk(65.9%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(17.56, 39.88, -53.80) |
| CIE-LCH | lch(17.56, 66.96, 306.55°) |
| OKLab | oklab(30.74% 0.0316 -0.1552) |
| OKLCH | oklch(30.74% 0.158 281.5) |
| XYZ | xyz(4.7790, 2.4223, 18.9508) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 3.33
Royal
#0C1793
ΔE00 4.25
Dark Royal Blue
#02066F
ΔE00 4.34
Navy
#000080
ΔE00 4.36
Deep Blue
#040273
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A147B #657B14
analogous
#14317B #2A147B #5E147B
triadic
#2A147B #7B2A14 #147B2A
tetradic
#2A147B #7B1431 #657B14 #147B5E
square
#2A147B #7B1431 #657B14 #147B5E
split-complementary
#2A147B #7B5E14 #317B14
monochromatic
#09041A #180B46 #2A147B #3C1DB0 #522DDD
Accessibility & contrast
On white
14.15
#2A147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2A147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A147B
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A147B | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a147b; /* rgb */ color: rgb(42, 20, 123); /* oklch */ color: oklch(30.7% 0.158 281.5);
Tailwind
colors: {
custom: {
50: '#7056a2',
500: '#2a147b',
950: '#000000',
},
}SCSS
$custom: #2a147b; $custom-light: #7056a2; $custom-dark: #000000;
JSON
{
"hex": "#2a147b",
"rgb": {
"r": 42,
"g": 20,
"b": 123
},
"hsl": {
"h": 252.816,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.30736,
"c": 0.15841,
"h": 281.5
},
"luminance": 0.02423
}Semantic roles & 50–950 ramp
primary
#2A147B
secondary
#97B13A
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F