#2B164F#2B164F
#2B164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.099 H 295.8°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2B164F |
|---|---|
| RGB | rgb(43, 22, 79) |
| HSL | hsl(262, 56%, 20%) |
| HSV | hsv(262, 72%, 31%) |
| CMYK | cmyk(45.6%, 72.2%, 0%, 69%) |
| CIE-LAB | lab(13.54, 25.11, -31.31) |
| CIE-LCH | lch(13.54, 40.14, 308.73°) |
| OKLab | oklab(26.56% 0.0432 -0.0894) |
| OKLCH | oklch(26.56% 0.099 295.8) |
| XYZ | xyz(2.6941, 1.6519, 7.5725) |
| Luminance | 0.0165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.42
Midnight Purple
#280137
ΔE00 6.49
Dark Purple
#35063E
ΔE00 6.61
Dark Violet
#34013F
ΔE00 6.74
Night Blue
#040348
ΔE00 6.82
Deep Purple
#36013F
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B164F #3A4F16
analogous
#161E4F #2B164F #48164F
triadic
#2B164F #4F2B16 #164F2B
tetradic
#2B164F #4F161E #3A4F16 #164F48
square
#2B164F #4F161E #3A4F16 #164F48
split-complementary
#2B164F #4F4816 #1E4F16
monochromatic
#0D0718 #11091F #2B164F #45237F #5F31AF
Accessibility & contrast
On white
15.78
#2B164F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2B164F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B164F
15.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B164F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B164F | 1.00 | 15.78 | 1.33 | 15.78 |
| #FFFFFF | 15.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#222330
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2b164f; /* rgb */ color: rgb(43, 22, 79); /* oklch */ color: oklch(26.6% 0.099 295.8);
Tailwind
colors: {
custom: {
50: '#685581',
500: '#2b164f',
950: '#000000',
},
}SCSS
$custom: #2b164f; $custom-light: #685581; $custom-dark: #000000;
JSON
{
"hex": "#2b164f",
"rgb": {
"r": 43,
"g": 22,
"b": 79
},
"hsl": {
"h": 262.105,
"s": 56.436,
"l": 19.804
},
"oklch": {
"l": 0.26559,
"c": 0.09929,
"h": 295.8
},
"luminance": 0.01652
}Semantic roles & 50–950 ramp
primary
#2B164F
secondary
#6A863A
accent
#E048A8
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C