#2B186A#2B186A
#2B186A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.133 H 285.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2B186A |
|---|---|
| RGB | rgb(43, 24, 106) |
| HSL | hsl(254, 63%, 25%) |
| HSV | hsv(254, 77%, 42%) |
| CMYK | cmyk(59.4%, 77.4%, 0%, 58.4%) |
| CIE-LAB | lab(16.54, 32.55, -44.49) |
| CIE-LCH | lch(16.54, 55.12, 306.19°) |
| OKLab | oklab(29.49% 0.0356 -0.1281) |
| OKLCH | oklch(29.49% 0.133 285.5) |
| XYZ | xyz(3.9236, 2.2072, 13.8522) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Dark Indigo
#1F0954
ΔE00 4.56
Darkblue (survey)
#030764
ΔE00 5.11
Dark Royal Blue
#02066F
ΔE00 5.26
Indigo (survey)
#380282
ΔE00 5.67
Deep Blue
#040273
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B186A #576A18
analogous
#182E6A #2B186A #54186A
triadic
#2B186A #6A2B18 #186A2B
tetradic
#2B186A #6A182E #576A18 #186A54
square
#2B186A #6A182E #576A18 #186A54
split-complementary
#2B186A #6A5418 #2E6A18
monochromatic
#0A0619 #170D38 #2B186A #3F239C #532FCE
Accessibility & contrast
On white
14.57
#2B186A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2B186A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B186A
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B186A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B186A | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#0D2F3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b186a; /* rgb */ color: rgb(43, 24, 106); /* oklch */ color: oklch(29.5% 0.133 285.5);
Tailwind
colors: {
custom: {
50: '#6d5795',
500: '#2b186a',
950: '#000000',
},
}SCSS
$custom: #2b186a; $custom-light: #6d5795; $custom-dark: #000000;
JSON
{
"hex": "#2b186a",
"rgb": {
"r": 43,
"g": 24,
"b": 106
},
"hsl": {
"h": 253.902,
"s": 63.077,
"l": 25.49
},
"oklch": {
"l": 0.29489,
"c": 0.13291,
"h": 285.5
},
"luminance": 0.02207
}Semantic roles & 50–950 ramp
primary
#2B186A
secondary
#89A03E
accent
#E642C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E