#2B114F#2B114F
#2B114F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 297.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2B114F |
|---|---|
| RGB | rgb(43, 17, 79) |
| HSL | hsl(265, 65%, 19%) |
| HSV | hsv(265, 78%, 31%) |
| CMYK | cmyk(45.6%, 78.5%, 0%, 69%) |
| CIE-LAB | lab(12.47, 28.07, -33.05) |
| CIE-LCH | lch(12.47, 43.36, 310.34°) |
| OKLab | oklab(25.8% 0.0492 -0.0945) |
| OKLCH | oklch(25.8% 0.107 297.5) |
| XYZ | xyz(2.6076, 1.4790, 7.5437) |
| Luminance | 0.0148 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.46
Midnight Purple
#280137
ΔE00 5.79
Dark Violet
#34013F
ΔE00 5.92
Dark Purple
#35063E
ΔE00 6.06
Night Blue
#040348
ΔE00 6.29
Deep Purple
#36013F
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B114F #354F11
analogous
#11164F #2B114F #4A114F
triadic
#2B114F #4F2B11 #114F2B
tetradic
#2B114F #4F1116 #354F11 #114F4A
square
#2B114F #4F1116 #354F11 #114F4A
split-complementary
#2B114F #4F4A11 #164F11
monochromatic
#0E0519 #10061D #2B114F #461C81 #6227B4
Accessibility & contrast
On white
16.21
#2B114F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.30
#2B114F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B114F
16.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B114F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B114F | 1.00 | 16.21 | 1.30 | 16.21 |
| #FFFFFF | 16.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#22212E
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2b114f; /* rgb */ color: rgb(43, 17, 79); /* oklch */ color: oklch(25.8% 0.107 297.5);
Tailwind
colors: {
custom: {
50: '#685181',
500: '#2b114f',
950: '#000000',
},
}SCSS
$custom: #2b114f; $custom-light: #685181; $custom-dark: #000000;
JSON
{
"hex": "#2b114f",
"rgb": {
"r": 43,
"g": 17,
"b": 79
},
"hsl": {
"h": 265.161,
"s": 64.583,
"l": 18.824
},
"oklch": {
"l": 0.25795,
"c": 0.10651,
"h": 297.5
},
"luminance": 0.01479
}Semantic roles & 50–950 ramp
primary
#2B114F
secondary
#658833
accent
#E840A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C