#2B0C4F#2B0C4F
#2B0C4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.113 H 298.8°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2B0C4F |
|---|---|
| RGB | rgb(43, 12, 79) |
| HSL | hsl(268, 74%, 18%) |
| HSV | hsv(268, 85%, 31%) |
| CMYK | cmyk(45.6%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(11.56, 30.67, -34.54) |
| CIE-LCH | lch(11.56, 46.19, 311.60°) |
| OKLab | oklab(25.15% 0.0544 -0.0988) |
| OKLCH | oklch(25.15% 0.113 298.8) |
| XYZ | xyz(2.5387, 1.3410, 7.5207) |
| Luminance | 0.0134 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.97
Midnight Purple
#280137
ΔE00 5.44
Dark Violet
#34013F
ΔE00 5.45
Dark Purple
#35063E
ΔE00 5.85
Deep Purple
#36013F
ΔE00 5.85
Night Blue
#040348
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B0C4F #304F0C
analogous
#0C0F4F #2B0C4F #4C0C4F
triadic
#2B0C4F #4F2B0C #0C4F2B
tetradic
#2B0C4F #4F0C0F #304F0C #0C4F4C
square
#2B0C4F #4F0C0F #304F0C #0C4F4C
split-complementary
#2B0C4F #4F4C0C #0F4F0C
monochromatic
#0E041B #0E041B #2B0C4F #481484 #651CB9
Accessibility & contrast
On white
16.56
#2B0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2B0C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B0C4F
16.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B0C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B0C4F | 1.00 | 16.56 | 1.27 | 16.56 |
| #FFFFFF | 16.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#221E2D
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #2b0c4f; /* rgb */ color: rgb(43, 12, 79); /* oklch */ color: oklch(25.2% 0.113 298.8);
Tailwind
colors: {
custom: {
50: '#694f81',
500: '#2b0c4f',
950: '#000000',
},
}SCSS
$custom: #2b0c4f; $custom-light: #694f81; $custom-dark: #000000;
JSON
{
"hex": "#2b0c4f",
"rgb": {
"r": 43,
"g": 12,
"b": 79
},
"hsl": {
"h": 267.761,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.25151,
"c": 0.11279,
"h": 298.8
},
"luminance": 0.01341
}Semantic roles & 50–950 ramp
primary
#2B0C4F
secondary
#5F8B2C
accent
#F0389B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C