#2A176E#2A176E
#2A176E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.139 H 284.0°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2A176E |
|---|---|
| RGB | rgb(42, 23, 110) |
| HSL | hsl(253, 65%, 26%) |
| HSV | hsv(253, 79%, 43%) |
| CMYK | cmyk(61.8%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(16.65, 34.25, -46.91) |
| CIE-LCH | lch(16.65, 58.08, 306.13°) |
| OKLab | oklab(29.67% 0.0337 -0.1352) |
| OKLCH | oklch(29.67% 0.139 284) |
| XYZ | xyz(4.0748, 2.2306, 14.9646) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.55
Dark Royal Blue
#02066F
ΔE00 4.73
Darkblue (survey)
#030764
ΔE00 4.83
Dark Indigo
#1F0954
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.03
Deep Blue
#040273
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A176E #5B6E17
analogous
#172F6E #2A176E #55176E
triadic
#2A176E #6E2A17 #176E2A
tetradic
#2A176E #6E172F #5B6E17 #176E55
square
#2A176E #6E172F #5B6E17 #176E55
split-complementary
#2A176E #6E5517 #2F6E17
monochromatic
#0A0519 #170C3B #2A176E #3D22A1 #512CD3
Accessibility & contrast
On white
14.52
#2A176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2A176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A176E
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A176E | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#023041
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a176e; /* rgb */ color: rgb(42, 23, 110); /* oklch */ color: oklch(29.7% 0.139 284.0);
Tailwind
colors: {
custom: {
50: '#6d5799',
500: '#2a176e',
950: '#000000',
},
}SCSS
$custom: #2a176e; $custom-light: #6d5799; $custom-dark: #000000;
JSON
{
"hex": "#2a176e",
"rgb": {
"r": 42,
"g": 23,
"b": 110
},
"hsl": {
"h": 253.103,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.29671,
"c": 0.13931,
"h": 284
},
"luminance": 0.02231
}Semantic roles & 50–950 ramp
primary
#2A176E
secondary
#8DA43D
accent
#E83FC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E