#2B154F#2B154F
#2B154F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.101 H 296.2°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2B154F |
|---|---|
| RGB | rgb(43, 21, 79) |
| HSL | hsl(263, 58%, 20%) |
| HSV | hsv(263, 73%, 31%) |
| CMYK | cmyk(45.6%, 73.4%, 0%, 69%) |
| CIE-LAB | lab(13.32, 25.73, -31.68) |
| CIE-LCH | lch(13.32, 40.81, 309.08°) |
| OKLab | oklab(26.4% 0.0445 -0.0904) |
| OKLCH | oklch(26.4% 0.101 296.2) |
| XYZ | xyz(2.6753, 1.6144, 7.5663) |
| Luminance | 0.0161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.20
Midnight Purple
#280137
ΔE00 6.32
Dark Purple
#35063E
ΔE00 6.47
Dark Violet
#34013F
ΔE00 6.55
Night Blue
#040348
ΔE00 6.68
Deep Purple
#36013F
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B154F #394F15
analogous
#151C4F #2B154F #48154F
triadic
#2B154F #4F2B15 #154F2B
tetradic
#2B154F #4F151C #394F15 #154F48
square
#2B154F #4F151C #394F15 #154F48
split-complementary
#2B154F #4F4815 #1C4F15
monochromatic
#0D0618 #11081F #2B154F #45227F #602FB0
Accessibility & contrast
On white
15.88
#2B154F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#2B154F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B154F
15.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B154F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B154F | 1.00 | 15.88 | 1.32 | 15.88 |
| #FFFFFF | 15.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#222330
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #2b154f; /* rgb */ color: rgb(43, 21, 79); /* oklch */ color: oklch(26.4% 0.101 296.2);
Tailwind
colors: {
custom: {
50: '#685481',
500: '#2b154f',
950: '#000000',
},
}SCSS
$custom: #2b154f; $custom-light: #685481; $custom-dark: #000000;
JSON
{
"hex": "#2b154f",
"rgb": {
"r": 43,
"g": 21,
"b": 79
},
"hsl": {
"h": 262.759,
"s": 58,
"l": 19.608
},
"oklch": {
"l": 0.26397,
"c": 0.1008,
"h": 296.2
},
"luminance": 0.01614
}Semantic roles & 50–950 ramp
primary
#2B154F
secondary
#698739
accent
#E147A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C