#2B127E#2B127E
#2B127E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.163 H 281.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2B127E |
|---|---|
| RGB | rgb(43, 18, 126) |
| HSL | hsl(254, 75%, 28%) |
| HSV | hsv(254, 86%, 49%) |
| CMYK | cmyk(65.9%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.70, 41.80, -55.48) |
| CIE-LCH | lch(17.70, 69.47, 306.99°) |
| OKLab | oklab(30.96% 0.0332 -0.1601) |
| OKLCH | oklch(30.96% 0.163 281.7) |
| XYZ | xyz(4.9773, 2.4522, 19.9457) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.82
Midnight Blue
#191970
ΔE00 3.85
Royal
#0C1793
ΔE00 4.02
Navy
#000080
ΔE00 4.09
Darkblue
#00008B
ΔE00 4.16
Deep Blue
#040273
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B127E #657E12
analogous
#122F7E #2B127E #61127E
triadic
#2B127E #7E2B12 #127E2B
tetradic
#2B127E #7E122F #657E12 #127E61
square
#2B127E #7E122F #657E12 #127E61
split-complementary
#2B127E #7E6112 #2F7E12
monochromatic
#09041B #190A48 #2B127E #3D1AB4 #542AE1
Accessibility & contrast
On white
14.09
#2B127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B127E
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B127E | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b127e; /* rgb */ color: rgb(43, 18, 126); /* oklch */ color: oklch(31.0% 0.163 281.7);
Tailwind
colors: {
custom: {
50: '#7155a5',
500: '#2b127e',
950: '#000000',
},
}SCSS
$custom: #2b127e; $custom-light: #7155a5; $custom-dark: #000000;
JSON
{
"hex": "#2b127e",
"rgb": {
"r": 43,
"g": 18,
"b": 126
},
"hsl": {
"h": 253.889,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.30958,
"c": 0.16348,
"h": 281.7
},
"luminance": 0.02453
}Semantic roles & 50–950 ramp
primary
#2B127E
secondary
#97B438
accent
#F236C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F