#2B117E#2B117E
#2B117E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.164 H 281.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2B117E |
|---|---|
| RGB | rgb(43, 17, 126) |
| HSL | hsl(254, 76%, 28%) |
| HSV | hsv(254, 87%, 49%) |
| CMYK | cmyk(65.9%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(17.56, 42.23, -55.72) |
| CIE-LCH | lch(17.56, 69.92, 307.16°) |
| OKLab | oklab(30.86% 0.0337 -0.1608) |
| OKLCH | oklch(30.86% 0.164 281.8) |
| XYZ | xyz(4.9614, 2.4205, 19.9404) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.68
Midnight Blue
#191970
ΔE00 3.96
Navy
#000080
ΔE00 3.98
Darkblue
#00008B
ΔE00 4.06
Royal
#0C1793
ΔE00 4.07
Deep Blue
#040273
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B117E #647E11
analogous
#112D7E #2B117E #61117E
triadic
#2B117E #7E2B11 #117E2B
tetradic
#2B117E #7E112D #647E11 #117E61
square
#2B117E #7E112D #647E11 #117E61
split-complementary
#2B117E #7E6111 #2D7E11
monochromatic
#09041B #190A48 #2B117E #3D18B4 #5427E2
Accessibility & contrast
On white
14.15
#2B117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2B117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B117E
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B117E | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b117e; /* rgb */ color: rgb(43, 17, 126); /* oklch */ color: oklch(30.9% 0.164 281.8);
Tailwind
colors: {
custom: {
50: '#7155a5',
500: '#2b117e',
950: '#000000',
},
}SCSS
$custom: #2b117e; $custom-light: #7155a5; $custom-dark: #000000;
JSON
{
"hex": "#2b117e",
"rgb": {
"r": 43,
"g": 17,
"b": 126
},
"hsl": {
"h": 254.312,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30858,
"c": 0.16425,
"h": 281.8
},
"luminance": 0.02421
}Semantic roles & 50–950 ramp
primary
#2B117E
secondary
#96B437
accent
#F335C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F