#2B186F#2B186F
#2B186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.139 H 284.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2B186F |
|---|---|
| RGB | rgb(43, 24, 111) |
| HSL | hsl(253, 64%, 26%) |
| HSV | hsv(253, 78%, 44%) |
| CMYK | cmyk(61.3%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(17.06, 34.16, -46.90) |
| CIE-LCH | lch(17.06, 58.02, 306.07°) |
| OKLab | oklab(30.01% 0.0342 -0.1351) |
| OKLCH | oklch(30.01% 0.139 284.2) |
| XYZ | xyz(4.1913, 2.3143, 15.2617) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.59
Dark Royal Blue
#02066F
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.02
Darkblue (survey)
#030764
ΔE00 5.08
Dark Indigo
#1F0954
ΔE00 5.18
Deep Blue
#040273
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B186F #5C6F18
analogous
#18316F #2B186F #57186F
triadic
#2B186F #6F2B18 #186F2B
tetradic
#2B186F #6F1831 #5C6F18 #186F57
square
#2B186F #6F1831 #5C6F18 #186F57
split-complementary
#2B186F #6F5718 #316F18
monochromatic
#0A0519 #180D3D #2B186F #3E23A1 #532FD2
Accessibility & contrast
On white
14.35
#2B186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2B186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B186F
14.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B186F | 1.00 | 14.35 | 1.46 | 14.35 |
| #FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#043042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2b186f; /* rgb */ color: rgb(43, 24, 111); /* oklch */ color: oklch(30.0% 0.139 284.2);
Tailwind
colors: {
custom: {
50: '#6e5799',
500: '#2b186f',
950: '#000000',
},
}SCSS
$custom: #2b186f; $custom-light: #6e5799; $custom-dark: #000000;
JSON
{
"hex": "#2b186f",
"rgb": {
"r": 43,
"g": 24,
"b": 111
},
"hsl": {
"h": 253.103,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.30012,
"c": 0.13938,
"h": 284.2
},
"luminance": 0.02315
}Semantic roles & 50–950 ramp
primary
#2B186F
secondary
#8EA53E
accent
#E740C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E