#2B186B#2B186B
#2B186B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.134 H 285.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2B186B |
|---|---|
| RGB | rgb(43, 24, 107) |
| HSL | hsl(254, 63%, 26%) |
| HSV | hsv(254, 78%, 42%) |
| CMYK | cmyk(59.8%, 77.6%, 0%, 58%) |
| CIE-LAB | lab(16.64, 32.87, -44.97) |
| CIE-LCH | lch(16.64, 55.70, 306.16°) |
| OKLab | oklab(29.59% 0.0353 -0.1295) |
| OKLCH | oklch(29.59% 0.134 285.3) |
| XYZ | xyz(3.9759, 2.2282, 14.1276) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.83
Dark Indigo
#1F0954
ΔE00 4.68
Darkblue (survey)
#030764
ΔE00 5.09
Dark Royal Blue
#02066F
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 5.53
Deep Blue
#040273
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B186B #586B18
analogous
#182E6B #2B186B #54186B
triadic
#2B186B #6B2B18 #186B2B
tetradic
#2B186B #6B182E #586B18 #186B54
square
#2B186B #6B182E #586B18 #186B54
split-complementary
#2B186B #6B5418 #2E6B18
monochromatic
#0A0619 #170D39 #2B186B #3F239D #532ECF
Accessibility & contrast
On white
14.53
#2B186B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2B186B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B186B
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B186B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B186B | 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)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#0B2F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b186b; /* rgb */ color: rgb(43, 24, 107); /* oklch */ color: oklch(29.6% 0.134 285.3);
Tailwind
colors: {
custom: {
50: '#6d5796',
500: '#2b186b',
950: '#000000',
},
}SCSS
$custom: #2b186b; $custom-light: #6d5796; $custom-dark: #000000;
JSON
{
"hex": "#2b186b",
"rgb": {
"r": 43,
"g": 24,
"b": 107
},
"hsl": {
"h": 253.735,
"s": 63.359,
"l": 25.686
},
"oklch": {
"l": 0.29593,
"c": 0.13421,
"h": 285.3
},
"luminance": 0.02228
}Semantic roles & 50–950 ramp
primary
#2B186B
secondary
#8AA13E
accent
#E641C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E