#2B114E#2B114E
#2B114E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.105 H 298.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2B114E |
|---|---|
| RGB | rgb(43, 17, 78) |
| HSL | hsl(266, 64%, 19%) |
| HSV | hsv(266, 78%, 31%) |
| CMYK | cmyk(44.9%, 78.2%, 0%, 69.4%) |
| CIE-LAB | lab(12.38, 27.77, -32.51) |
| CIE-LCH | lch(12.38, 42.76, 310.50°) |
| OKLab | oklab(25.7% 0.0494 -0.0929) |
| OKLCH | oklch(25.7% 0.105 298) |
| XYZ | xyz(2.5715, 1.4645, 7.3534) |
| Luminance | 0.0146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.64
Midnight Purple
#280137
ΔE00 5.62
Dark Violet
#34013F
ΔE00 5.78
Dark Purple
#35063E
ΔE00 5.89
Deep Purple
#36013F
ΔE00 6.16
Night Blue
#040348
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B114E #344E11
analogous
#11154E #2B114E #49114E
triadic
#2B114E #4E2B11 #114E2B
tetradic
#2B114E #4E1115 #344E11 #114E49
square
#2B114E #4E1115 #344E11 #114E49
split-complementary
#2B114E #4E4911 #154E11
monochromatic
#0E0519 #0F061C #2B114E #471C80 #6227B2
Accessibility & contrast
On white
16.24
#2B114E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#2B114E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B114E
16.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B114E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B114E | 1.00 | 16.24 | 1.29 | 16.24 |
| #FFFFFF | 16.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#22202E
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2b114e; /* rgb */ color: rgb(43, 17, 78); /* oklch */ color: oklch(25.7% 0.105 298.0);
Tailwind
colors: {
custom: {
50: '#685180',
500: '#2b114e',
950: '#000000',
},
}SCSS
$custom: #2b114e; $custom-light: #685180; $custom-dark: #000000;
JSON
{
"hex": "#2b114e",
"rgb": {
"r": 43,
"g": 17,
"b": 78
},
"hsl": {
"h": 265.574,
"s": 64.211,
"l": 18.627
},
"oklch": {
"l": 0.257,
"c": 0.10522,
"h": 298
},
"luminance": 0.01465
}Semantic roles & 50–950 ramp
primary
#2B114E
secondary
#648733
accent
#E741A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C