#2B175A#2B175A
#2B175A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.113 H 290.9°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2B175A |
|---|---|
| RGB | rgb(43, 23, 90) |
| HSL | hsl(258, 59%, 22%) |
| HSV | hsv(258, 74%, 35%) |
| CMYK | cmyk(52.2%, 74.4%, 0%, 64.7%) |
| CIE-LAB | lab(14.76, 27.98, -36.79) |
| CIE-LCH | lch(14.76, 46.23, 307.25°) |
| OKLab | oklab(27.74% 0.0402 -0.1055) |
| OKLCH | oklch(27.74% 0.113 290.9) |
| XYZ | xyz(3.1476, 1.8644, 9.8649) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.46
Midnight Blue
#191970
ΔE00 5.35
Darkblue (survey)
#030764
ΔE00 6.34
Night Blue
#040348
ΔE00 6.48
Dark Blue
#00035B
ΔE00 6.63
Navy Blue (survey)
#001146
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B175A #465A17
analogous
#17255A #2B175A #4C175A
triadic
#2B175A #5A2B17 #175A2B
tetradic
#2B175A #5A1725 #465A17 #175A4C
square
#2B175A #5A1725 #465A17 #175A4C
split-complementary
#2B175A #5A4C17 #255A17
monochromatic
#0C0618 #140B29 #2B175A #42238B #5A30BB
Accessibility & contrast
On white
15.29
#2B175A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2B175A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B175A
15.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B175A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B175A | 1.00 | 15.29 | 1.37 | 15.29 |
| #FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1C2836
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2b175a; /* rgb */ color: rgb(43, 23, 90); /* oklch */ color: oklch(27.7% 0.113 290.9);
Tailwind
colors: {
custom: {
50: '#6a5689',
500: '#2b175a',
950: '#000000',
},
}SCSS
$custom: #2b175a; $custom-light: #6a5689; $custom-dark: #000000;
JSON
{
"hex": "#2b175a",
"rgb": {
"r": 43,
"g": 23,
"b": 90
},
"hsl": {
"h": 257.91,
"s": 59.292,
"l": 22.157
},
"oklch": {
"l": 0.27742,
"c": 0.11291,
"h": 290.9
},
"luminance": 0.01865
}Semantic roles & 50–950 ramp
primary
#2B175A
secondary
#78913C
accent
#E245B4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D