#2A186F#2A186F
#2A186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 283.5°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2A186F |
|---|---|
| RGB | rgb(42, 24, 111) |
| HSL | hsl(252, 64%, 26%) |
| HSV | hsv(252, 78%, 44%) |
| CMYK | cmyk(62.2%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(16.95, 34.02, -47.07) |
| CIE-LCH | lch(16.95, 58.07, 305.86°) |
| OKLab | oklab(29.92% 0.0327 -0.1356) |
| OKLCH | oklch(29.92% 0.14 283.5) |
| XYZ | xyz(4.1498, 2.2929, 15.2597) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.43
Dark Royal Blue
#02066F
ΔE00 4.84
Darkblue (survey)
#030764
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 5.09
Dark Indigo
#1F0954
ΔE00 5.18
Deep Blue
#040273
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A186F #5D6F18
analogous
#18326F #2A186F #56186F
triadic
#2A186F #6F2A18 #186F2A
tetradic
#2A186F #6F1832 #5D6F18 #186F56
square
#2A186F #6F1832 #5D6F18 #186F56
split-complementary
#2A186F #6F5618 #326F18
monochromatic
#0A0519 #170D3D #2A186F #3D23A1 #512FD2
Accessibility & contrast
On white
14.40
#2A186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2A186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A186F
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A186F | 1.00 | 14.40 | 1.46 | 14.40 |
| #FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2a186f; /* rgb */ color: rgb(42, 24, 111); /* oklch */ color: oklch(29.9% 0.140 283.5);
Tailwind
colors: {
custom: {
50: '#6d5799',
500: '#2a186f',
950: '#000000',
},
}SCSS
$custom: #2a186f; $custom-light: #6d5799; $custom-dark: #000000;
JSON
{
"hex": "#2a186f",
"rgb": {
"r": 42,
"g": 24,
"b": 111
},
"hsl": {
"h": 252.414,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.29915,
"c": 0.13951,
"h": 283.5
},
"luminance": 0.02293
}Semantic roles & 50–950 ramp
primary
#2A186F
secondary
#8FA53E
accent
#E740C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E