#2B176E#2B176E
#2B176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.139 H 284.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2B176E |
|---|---|
| RGB | rgb(43, 23, 110) |
| HSL | hsl(254, 65%, 26%) |
| HSV | hsv(254, 79%, 43%) |
| CMYK | cmyk(60.9%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(16.76, 34.39, -46.74) |
| CIE-LCH | lch(16.76, 58.03, 306.35°) |
| OKLab | oklab(29.77% 0.0353 -0.1346) |
| OKLCH | oklch(29.77% 0.139 284.7) |
| XYZ | xyz(4.1163, 2.2519, 14.9666) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.71
Dark Royal Blue
#02066F
ΔE00 4.84
Darkblue (survey)
#030764
ΔE00 4.94
Dark Indigo
#1F0954
ΔE00 4.95
Indigo (survey)
#380282
ΔE00 4.96
Deep Blue
#040273
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B176E #5A6E17
analogous
#172E6E #2B176E #56176E
triadic
#2B176E #6E2B17 #176E2B
tetradic
#2B176E #6E172E #5A6E17 #176E56
square
#2B176E #6E172E #5A6E17 #176E56
split-complementary
#2B176E #6E5617 #2E6E17
monochromatic
#0A0519 #170C3B #2B176E #3F22A1 #532CD3
Accessibility & contrast
On white
14.48
#2B176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2B176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B176E
14.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B176E | 1.00 | 14.48 | 1.45 | 14.48 |
| #FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#063041
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b176e; /* rgb */ color: rgb(43, 23, 110); /* oklch */ color: oklch(29.8% 0.139 284.7);
Tailwind
colors: {
custom: {
50: '#6d5799',
500: '#2b176e',
950: '#000000',
},
}SCSS
$custom: #2b176e; $custom-light: #6d5799; $custom-dark: #000000;
JSON
{
"hex": "#2b176e",
"rgb": {
"r": 43,
"g": 23,
"b": 110
},
"hsl": {
"h": 253.793,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.29769,
"c": 0.13919,
"h": 284.7
},
"luminance": 0.02252
}Semantic roles & 50–950 ramp
primary
#2B176E
secondary
#8CA43D
accent
#E83FC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E