#2B0C4E#2B0C4E
#2B0C4E is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.112 H 299.3°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2B0C4E |
|---|---|
| RGB | rgb(43, 12, 78) |
| HSL | hsl(268, 73%, 18%) |
| HSV | hsv(268, 85%, 31%) |
| CMYK | cmyk(44.9%, 84.6%, 0%, 69.4%) |
| CIE-LAB | lab(11.46, 30.38, -34.02) |
| CIE-LCH | lch(11.46, 45.61, 311.77°) |
| OKLab | oklab(25.05% 0.0547 -0.0973) |
| OKLCH | oklch(25.05% 0.112 299.3) |
| XYZ | xyz(2.5025, 1.3266, 7.3305) |
| Luminance | 0.0133 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.14
Midnight Purple
#280137
ΔE00 5.24
Dark Violet
#34013F
ΔE00 5.28
Dark Purple
#35063E
ΔE00 5.66
Deep Purple
#36013F
ΔE00 5.69
Night Blue
#040348
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B0C4E #2F4E0C
analogous
#0C0E4E #2B0C4E #4C0C4E
triadic
#2B0C4E #4E2B0C #0C4E2B
tetradic
#2B0C4E #4E0C0E #2F4E0C #0C4E4C
square
#2B0C4E #4E0C0E #2F4E0C #0C4E4C
split-complementary
#2B0C4E #4E4C0C #0E4E0C
monochromatic
#0F041B #0F041B #2B0C4E #481483 #651CB8
Accessibility & contrast
On white
16.60
#2B0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2B0C4E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B0C4E
16.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B0C4E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B0C4E | 1.00 | 16.60 | 1.27 | 16.60 |
| #FFFFFF | 16.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#231E2D
Achromatopsia (no color)
#1E1E1E
Design tokens & code
CSS
--color: #2b0c4e; /* rgb */ color: rgb(43, 12, 78); /* oklch */ color: oklch(25.1% 0.112 299.3);
Tailwind
colors: {
custom: {
50: '#694f80',
500: '#2b0c4e',
950: '#000000',
},
}SCSS
$custom: #2b0c4e; $custom-light: #694f80; $custom-dark: #000000;
JSON
{
"hex": "#2b0c4e",
"rgb": {
"r": 43,
"g": 12,
"b": 78
},
"hsl": {
"h": 268.182,
"s": 73.333,
"l": 17.647
},
"oklch": {
"l": 0.25051,
"c": 0.11159,
"h": 299.3
},
"luminance": 0.01327
}Semantic roles & 50–950 ramp
primary
#2B0C4E
secondary
#5E8A2C
accent
#F03899
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C