#2B165F#2B165F
#2B165F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.121 H 289.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2B165F |
|---|---|
| RGB | rgb(43, 22, 95) |
| HSL | hsl(257, 62%, 23%) |
| HSV | hsv(257, 77%, 37%) |
| CMYK | cmyk(54.7%, 76.8%, 0%, 62.7%) |
| CIE-LAB | lab(15.03, 30.17, -39.70) |
| CIE-LCH | lch(15.03, 49.86, 307.23°) |
| OKLab | oklab(28.08% 0.0402 -0.114) |
| OKLCH | oklch(28.08% 0.121 289.4) |
| XYZ | xyz(3.3481, 1.9135, 11.0172) |
| Luminance | 0.0191 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.28
Midnight Blue
#191970
ΔE00 4.47
Darkblue (survey)
#030764
ΔE00 5.56
Dark Blue
#00035B
ΔE00 6.05
Dark Royal Blue
#02066F
ΔE00 6.25
Night Blue
#040348
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B165F #4A5F16
analogous
#16265F #2B165F #4F165F
triadic
#2B165F #5F2B16 #165F2B
tetradic
#2B165F #5F1626 #4A5F16 #165F4F
square
#2B165F #5F1626 #4A5F16 #165F4F
split-complementary
#2B165F #5F4F16 #265F16
monochromatic
#0B0619 #150A2D #2B165F #412291 #582DC2
Accessibility & contrast
On white
15.19
#2B165F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2B165F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B165F
15.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B165F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B165F | 1.00 | 15.19 | 1.38 | 15.19 |
| #FFFFFF | 15.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#182939
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2b165f; /* rgb */ color: rgb(43, 22, 95); /* oklch */ color: oklch(28.1% 0.121 289.4);
Tailwind
colors: {
custom: {
50: '#6b558d',
500: '#2b165f',
950: '#000000',
},
}SCSS
$custom: #2b165f; $custom-light: #6b558d; $custom-dark: #000000;
JSON
{
"hex": "#2b165f",
"rgb": {
"r": 43,
"g": 22,
"b": 95
},
"hsl": {
"h": 257.26,
"s": 62.393,
"l": 22.941
},
"oklch": {
"l": 0.28081,
"c": 0.12089,
"h": 289.4
},
"luminance": 0.01914
}Semantic roles & 50–950 ramp
primary
#2B165F
secondary
#7C963B
accent
#E542B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D