#2B168A#2B168A
#2B168A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.175 H 278.9°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2B168A |
|---|---|
| RGB | rgb(43, 22, 138) |
| HSL | hsl(251, 73%, 31%) |
| HSV | hsv(251, 84%, 54%) |
| CMYK | cmyk(68.8%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(19.73, 43.63, -59.70) |
| CIE-LCH | lch(19.73, 73.94, 306.16°) |
| OKLab | oklab(32.77% 0.0272 -0.1724) |
| OKLCH | oklch(32.77% 0.175 278.9) |
| XYZ | xyz(5.8691, 2.9219, 24.2945) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.64
Indigo (survey)
#380282
ΔE00 3.53
Darkblue
#00008B
ΔE00 4.14
Cobalt Blue
#030AA7
ΔE00 4.46
Navy
#000080
ΔE00 4.71
Midnight Blue
#191970
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B168A #758A16
analogous
#163B8A #2B168A #65168A
triadic
#2B168A #8A2B16 #168A2B
tetradic
#2B168A #8A163B #758A16 #168A65
square
#2B168A #8A163B #758A16 #168A65
split-complementary
#2B168A #8A6516 #3B8A16
monochromatic
#0A0520 #1B0E55 #2B168A #3B1EBF #593BE0
Accessibility & contrast
On white
13.25
#2B168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2B168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B168A
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B168A | 1.00 | 13.25 | 1.58 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b168a; /* rgb */ color: rgb(43, 22, 138); /* oklch */ color: oklch(32.8% 0.175 278.9);
Tailwind
colors: {
custom: {
50: '#7458ad',
500: '#2b168a',
950: '#000000',
},
}SCSS
$custom: #2b168a; $custom-light: #7458ad; $custom-dark: #000000;
JSON
{
"hex": "#2b168a",
"rgb": {
"r": 43,
"g": 22,
"b": 138
},
"hsl": {
"h": 250.862,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.32769,
"c": 0.17454,
"h": 278.9
},
"luminance": 0.02922
}Semantic roles & 50–950 ramp
primary
#2B168A
secondary
#A7BE3E
accent
#EF39CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F