#2B177E#2B177E
#2B177E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.159 H 281.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2B177E |
|---|---|
| RGB | rgb(43, 23, 126) |
| HSL | hsl(252, 69%, 29%) |
| HSV | hsv(252, 82%, 49%) |
| CMYK | cmyk(65.9%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(18.51, 39.45, -54.15) |
| CIE-LCH | lch(18.51, 66.99, 306.07°) |
| OKLab | oklab(31.51% 0.0305 -0.1563) |
| OKLCH | oklch(31.51% 0.159 281) |
| XYZ | xyz(5.0674, 2.6324, 19.9757) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 3.62
Royal
#0C1793
ΔE00 3.88
Navy
#000080
ΔE00 4.77
Darkblue
#00008B
ΔE00 4.79
Dark Royal Blue
#02066F
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B177E #6A7E17
analogous
#17377E #2B177E #5F177E
triadic
#2B177E #7E2B17 #177E2B
tetradic
#2B177E #7E1737 #6A7E17 #177E5F
square
#2B177E #7E1737 #6A7E17 #177E5F
split-complementary
#2B177E #7E5F17 #377E17
monochromatic
#09051A #190E4A #2B177E #3D20B2 #5535DA
Accessibility & contrast
On white
13.76
#2B177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2B177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B177E
13.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B177E | 1.00 | 13.76 | 1.53 | 13.76 |
| #FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2b177e; /* rgb */ color: rgb(43, 23, 126); /* oklch */ color: oklch(31.5% 0.159 281.0);
Tailwind
colors: {
custom: {
50: '#7158a4',
500: '#2b177e',
950: '#000000',
},
}SCSS
$custom: #2b177e; $custom-light: #7158a4; $custom-dark: #000000;
JSON
{
"hex": "#2b177e",
"rgb": {
"r": 43,
"g": 23,
"b": 126
},
"hsl": {
"h": 251.65,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.31515,
"c": 0.15921,
"h": 281
},
"luminance": 0.02633
}Semantic roles & 50–950 ramp
primary
#2B177E
secondary
#9CB33E
accent
#EC3CCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F