#2B167F#2B167F
#2B167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.161 H 281.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2B167F |
|---|---|
| RGB | rgb(43, 22, 127) |
| HSL | hsl(252, 70%, 29%) |
| HSV | hsv(252, 83%, 50%) |
| CMYK | cmyk(66.1%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(18.45, 40.25, -54.88) |
| CIE-LCH | lch(18.45, 68.06, 306.26°) |
| OKLab | oklab(31.51% 0.0308 -0.1584) |
| OKLCH | oklch(31.51% 0.161 281) |
| XYZ | xyz(5.1127, 2.6193, 20.3107) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.41
Midnight Blue
#191970
ΔE00 3.54
Royal
#0C1793
ΔE00 3.76
Darkblue
#00008B
ΔE00 4.57
Navy
#000080
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B167F #6A7F16
analogous
#16367F #2B167F #60167F
triadic
#2B167F #7F2B16 #167F2B
tetradic
#2B167F #7F1636 #6A7F16 #167F60
square
#2B167F #7F1636 #6A7F16 #167F60
split-complementary
#2B167F #7F6016 #367F16
monochromatic
#09051A #190D4B #2B167F #3D1FB3 #5534DC
Accessibility & contrast
On white
13.78
#2B167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2B167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B167F
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B167F | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2b167f; /* rgb */ color: rgb(43, 22, 127); /* oklch */ color: oklch(31.5% 0.161 281.0);
Tailwind
colors: {
custom: {
50: '#7157a5',
500: '#2b167f',
950: '#000000',
},
}SCSS
$custom: #2b167f; $custom-light: #7157a5; $custom-dark: #000000;
JSON
{
"hex": "#2b167f",
"rgb": {
"r": 43,
"g": 22,
"b": 127
},
"hsl": {
"h": 252,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31509,
"c": 0.16134,
"h": 281
},
"luminance": 0.0262
}Semantic roles & 50–950 ramp
primary
#2B167F
secondary
#9CB43D
accent
#ED3BCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F