#2B116F#2B116F
#2B116F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 285.5°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2B116F |
|---|---|
| RGB | rgb(43, 17, 111) |
| HSL | hsl(257, 73%, 25%) |
| HSV | hsv(257, 85%, 44%) |
| CMYK | cmyk(61.3%, 84.7%, 0%, 56.5%) |
| CIE-LAB | lab(15.81, 37.75, -48.95) |
| CIE-LCH | lch(15.81, 61.82, 307.64°) |
| OKLab | oklab(29.14% 0.0392 -0.141) |
| OKLCH | oklch(29.14% 0.146 285.5) |
| XYZ | xyz(4.0651, 2.0619, 15.2196) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Indigo (survey)
#380282
ΔE00 3.97
Dark Royal Blue
#02066F
ΔE00 4.13
Deep Blue
#040273
ΔE00 4.34
Darkblue (survey)
#030764
ΔE00 4.44
Dark Indigo
#1F0954
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B116F #556F11
analogous
#11266F #2B116F #5A116F
triadic
#2B116F #6F2B11 #116F2B
tetradic
#2B116F #6F1126 #556F11 #116F5A
square
#2B116F #6F1126 #556F11 #116F5A
split-complementary
#2B116F #6F5A11 #266F11
monochromatic
#0A041B #16093A #2B116F #4019A4 #5421D9
Accessibility & contrast
On white
14.87
#2B116F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2B116F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B116F
14.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B116F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B116F | 1.00 | 14.87 | 1.41 | 14.87 |
| #FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#052E41
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2b116f; /* rgb */ color: rgb(43, 17, 111); /* oklch */ color: oklch(29.1% 0.146 285.5);
Tailwind
colors: {
custom: {
50: '#6e5499',
500: '#2b116f',
950: '#000000',
},
}SCSS
$custom: #2b116f; $custom-light: #6e5499; $custom-dark: #000000;
JSON
{
"hex": "#2b116f",
"rgb": {
"r": 43,
"g": 17,
"b": 111
},
"hsl": {
"h": 256.596,
"s": 73.438,
"l": 25.098
},
"oklch": {
"l": 0.29141,
"c": 0.14639,
"h": 285.5
},
"luminance": 0.02062
}Semantic roles & 50–950 ramp
primary
#2B116F
secondary
#87A635
accent
#F038BD
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E