#2B126E#2B126E
#2B126E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.144 H 285.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2B126E |
|---|---|
| RGB | rgb(43, 18, 110) |
| HSL | hsl(256, 72%, 25%) |
| HSV | hsv(256, 84%, 43%) |
| CMYK | cmyk(60.9%, 83.6%, 0%, 56.9%) |
| CIE-LAB | lab(15.86, 36.97, -48.22) |
| CIE-LCH | lch(15.86, 60.76, 307.48°) |
| OKLab | oklab(29.14% 0.0389 -0.1389) |
| OKLCH | oklch(29.14% 0.144 285.7) |
| XYZ | xyz(4.0262, 2.0718, 14.9366) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 4.22
Dark Royal Blue
#02066F
ΔE00 4.25
Darkblue (survey)
#030764
ΔE00 4.48
Deep Blue
#040273
ΔE00 4.52
Dark Indigo
#1F0954
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B126E #556E12
analogous
#12276E #2B126E #59126E
triadic
#2B126E #6E2B12 #126E2B
tetradic
#2B126E #6E1227 #556E12 #126E59
square
#2B126E #6E1227 #556E12 #126E59
split-complementary
#2B126E #6E5912 #276E12
monochromatic
#0A041A #160939 #2B126E #401BA3 #5423D7
Accessibility & contrast
On white
14.85
#2B126E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2B126E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B126E
14.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B126E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B126E | 1.00 | 14.85 | 1.41 | 14.85 |
| #FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#072D40
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2b126e; /* rgb */ color: rgb(43, 18, 110); /* oklch */ color: oklch(29.1% 0.144 285.7);
Tailwind
colors: {
custom: {
50: '#6e5499',
500: '#2b126e',
950: '#000000',
},
}SCSS
$custom: #2b126e; $custom-light: #6e5499; $custom-dark: #000000;
JSON
{
"hex": "#2b126e",
"rgb": {
"r": 43,
"g": 18,
"b": 110
},
"hsl": {
"h": 256.304,
"s": 71.875,
"l": 25.098
},
"oklch": {
"l": 0.29142,
"c": 0.14426,
"h": 285.7
},
"luminance": 0.02072
}Semantic roles & 50–950 ramp
primary
#2B126E
secondary
#87A537
accent
#EF39BD
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E