#2B187B#2B187B
#2B187B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 281.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2B187B |
|---|---|
| RGB | rgb(43, 24, 123) |
| HSL | hsl(252, 67%, 29%) |
| HSV | hsv(252, 80%, 48%) |
| CMYK | cmyk(65%, 80.5%, 0%, 51.8%) |
| CIE-LAB | lab(18.35, 37.99, -52.50) |
| CIE-LCH | lch(18.35, 64.80, 305.89°) |
| OKLab | oklab(31.31% 0.0308 -0.1515) |
| OKLCH | oklch(31.31% 0.155 281.5) |
| XYZ | xyz(4.8969, 2.5966, 18.9782) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.98
Indigo (survey)
#380282
ΔE00 3.95
Royal
#0C1793
ΔE00 4.29
Dark Royal Blue
#02066F
ΔE00 4.88
Deep Blue
#040273
ΔE00 5.03
Navy
#000080
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B187B #687B18
analogous
#18377B #2B187B #5D187B
triadic
#2B187B #7B2B18 #187B2B
tetradic
#2B187B #7B1837 #687B18 #187B5D
square
#2B187B #7B1837 #687B18 #187B5D
split-complementary
#2B187B #7B5D18 #377B18
monochromatic
#09051A #190E48 #2B187B #3D22AE #5536D8
Accessibility & contrast
On white
13.82
#2B187B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2B187B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B187B
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B187B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B187B | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2b187b; /* rgb */ color: rgb(43, 24, 123); /* oklch */ color: oklch(31.3% 0.155 281.5);
Tailwind
colors: {
custom: {
50: '#7058a2',
500: '#2b187b',
950: '#000000',
},
}SCSS
$custom: #2b187b; $custom-light: #7058a2; $custom-dark: #000000;
JSON
{
"hex": "#2b187b",
"rgb": {
"r": 43,
"g": 24,
"b": 123
},
"hsl": {
"h": 251.515,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.31306,
"c": 0.15456,
"h": 281.5
},
"luminance": 0.02597
}Semantic roles & 50–950 ramp
primary
#2B187B
secondary
#9AB03F
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F