#2A186C#2A186C
#2A186C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.136 H 284.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2A186C |
|---|---|
| RGB | rgb(42, 24, 108) |
| HSL | hsl(253, 64%, 26%) |
| HSV | hsv(253, 78%, 42%) |
| CMYK | cmyk(61.1%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(16.64, 33.04, -45.63) |
| CIE-LCH | lch(16.64, 56.34, 305.91°) |
| OKLab | oklab(29.6% 0.0334 -0.1314) |
| OKLCH | oklch(29.6% 0.136 284.3) |
| XYZ | xyz(3.9874, 2.2280, 14.4044) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.59
Dark Indigo
#1F0954
ΔE00 4.79
Darkblue (survey)
#030764
ΔE00 4.97
Dark Royal Blue
#02066F
ΔE00 5.01
Indigo (survey)
#380282
ΔE00 5.46
Deep Blue
#040273
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A186C #5A6C18
analogous
#18306C #2A186C #54186C
triadic
#2A186C #6C2A18 #186C2A
tetradic
#2A186C #6C1830 #5A6C18 #186C54
square
#2A186C #6C1830 #5A6C18 #186C54
split-complementary
#2A186C #6C5418 #306C18
monochromatic
#0A0619 #170D3A #2A186C #3D239E #512ED0
Accessibility & contrast
On white
14.53
#2A186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2A186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A186C
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A186C | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#052F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a186c; /* rgb */ color: rgb(42, 24, 108); /* oklch */ color: oklch(29.6% 0.136 284.3);
Tailwind
colors: {
custom: {
50: '#6c5797',
500: '#2a186c',
950: '#000000',
},
}SCSS
$custom: #2a186c; $custom-light: #6c5797; $custom-dark: #000000;
JSON
{
"hex": "#2a186c",
"rgb": {
"r": 42,
"g": 24,
"b": 108
},
"hsl": {
"h": 252.857,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.29598,
"c": 0.13563,
"h": 284.3
},
"luminance": 0.02228
}Semantic roles & 50–950 ramp
primary
#2A186C
secondary
#8CA23E
accent
#E741C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E