#2A147C#2A147C
#2A147C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.160 H 281.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2A147C |
|---|---|
| RGB | rgb(42, 20, 124) |
| HSL | hsl(253, 72%, 28%) |
| HSV | hsv(253, 84%, 49%) |
| CMYK | cmyk(66.1%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(17.68, 40.18, -54.25) |
| CIE-LCH | lch(17.68, 67.51, 306.53°) |
| OKLab | oklab(30.85% 0.0313 -0.1565) |
| OKLCH | oklch(30.85% 0.16 281.3) |
| XYZ | xyz(4.8419, 2.4474, 19.2821) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.28
Midnight Blue
#191970
ΔE00 3.37
Royal
#0C1793
ΔE00 4.12
Navy
#000080
ΔE00 4.32
Dark Royal Blue
#02066F
ΔE00 4.39
Deep Blue
#040273
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A147C #667C14
analogous
#14327C #2A147C #5E147C
triadic
#2A147C #7C2A14 #147C2A
tetradic
#2A147C #7C1432 #667C14 #147C5E
square
#2A147C #7C1432 #667C14 #147C5E
split-complementary
#2A147C #7C5E14 #327C14
monochromatic
#09041A #180B47 #2A147C #3C1DB1 #522DDD
Accessibility & contrast
On white
14.10
#2A147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2A147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A147C
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A147C | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a147c; /* rgb */ color: rgb(42, 20, 124); /* oklch */ color: oklch(30.9% 0.160 281.3);
Tailwind
colors: {
custom: {
50: '#7056a3',
500: '#2a147c',
950: '#000000',
},
}SCSS
$custom: #2a147c; $custom-light: #7056a3; $custom-dark: #000000;
JSON
{
"hex": "#2a147c",
"rgb": {
"r": 42,
"g": 20,
"b": 124
},
"hsl": {
"h": 252.692,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.3085,
"c": 0.15962,
"h": 281.3
},
"luminance": 0.02448
}Semantic roles & 50–950 ramp
primary
#2A147C
secondary
#98B23A
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F