#2A176F#2A176F
#2A176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.141 H 283.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2A176F |
|---|---|
| RGB | rgb(42, 23, 111) |
| HSL | hsl(253, 66%, 26%) |
| HSV | hsv(253, 79%, 44%) |
| CMYK | cmyk(62.2%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(16.76, 34.57, -47.39) |
| CIE-LCH | lch(16.76, 58.66, 306.11°) |
| OKLab | oklab(29.78% 0.0334 -0.1366) |
| OKLCH | oklch(29.78% 0.141 283.7) |
| XYZ | xyz(4.1296, 2.2525, 15.2530) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.51
Dark Royal Blue
#02066F
ΔE00 4.68
Darkblue (survey)
#030764
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 4.91
Dark Indigo
#1F0954
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A176F #5C6F17
analogous
#17306F #2A176F #56176F
triadic
#2A176F #6F2A17 #176F2A
tetradic
#2A176F #6F1730 #5C6F17 #176F56
square
#2A176F #6F1730 #5C6F17 #176F56
split-complementary
#2A176F #6F5617 #306F17
monochromatic
#0A0519 #170C3C #2A176F #3D22A2 #512DD3
Accessibility & contrast
On white
14.48
#2A176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2A176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A176F
14.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A176F | 1.00 | 14.48 | 1.45 | 14.48 |
| #FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a176f; /* rgb */ color: rgb(42, 23, 111); /* oklch */ color: oklch(29.8% 0.141 283.7);
Tailwind
colors: {
custom: {
50: '#6d5799',
500: '#2a176f',
950: '#000000',
},
}SCSS
$custom: #2a176f; $custom-light: #6d5799; $custom-dark: #000000;
JSON
{
"hex": "#2a176f",
"rgb": {
"r": 42,
"g": 23,
"b": 111
},
"hsl": {
"h": 252.955,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.29778,
"c": 0.1406,
"h": 283.7
},
"luminance": 0.02253
}Semantic roles & 50–950 ramp
primary
#2A176F
secondary
#8EA53D
accent
#E93FC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E