#2B156F#2B156F
#2B156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.143 H 284.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2B156F |
|---|---|
| RGB | rgb(43, 21, 111) |
| HSL | hsl(255, 68%, 26%) |
| HSV | hsv(255, 81%, 44%) |
| CMYK | cmyk(61.3%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.49, 35.77, -47.83) |
| CIE-LCH | lch(16.49, 59.73, 306.80°) |
| OKLab | oklab(29.61% 0.0365 -0.1378) |
| OKLCH | oklch(29.61% 0.143 284.8) |
| XYZ | xyz(4.1328, 2.1974, 15.2422) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Indigo (survey)
#380282
ΔE00 4.51
Dark Royal Blue
#02066F
ΔE00 4.52
Darkblue (survey)
#030764
ΔE00 4.74
Deep Blue
#040273
ΔE00 4.86
Dark Indigo
#1F0954
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B156F #596F15
analogous
#152C6F #2B156F #58156F
triadic
#2B156F #6F2B15 #156F2B
tetradic
#2B156F #6F152C #596F15 #156F58
square
#2B156F #6F152C #596F15 #156F58
split-complementary
#2B156F #6F5815 #2C6F15
monochromatic
#0A051A #170B3C #2B156F #3F1FA2 #5328D6
Accessibility & contrast
On white
14.59
#2B156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2B156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B156F
14.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B156F | 1.00 | 14.59 | 1.44 | 14.59 |
| #FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#042F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b156f; /* rgb */ color: rgb(43, 21, 111); /* oklch */ color: oklch(29.6% 0.143 284.8);
Tailwind
colors: {
custom: {
50: '#6e5699',
500: '#2b156f',
950: '#000000',
},
}SCSS
$custom: #2b156f; $custom-light: #6e5699; $custom-dark: #000000;
JSON
{
"hex": "#2b156f",
"rgb": {
"r": 43,
"g": 21,
"b": 111
},
"hsl": {
"h": 254.667,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29614,
"c": 0.14255,
"h": 284.8
},
"luminance": 0.02198
}Semantic roles & 50–950 ramp
primary
#2B156F
secondary
#8BA53A
accent
#EB3DC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E