#2B117F#2B117F
#2B117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.165 H 281.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2B117F |
|---|---|
| RGB | rgb(43, 17, 127) |
| HSL | hsl(254, 76%, 28%) |
| HSV | hsv(254, 87%, 50%) |
| CMYK | cmyk(66.1%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(17.67, 42.53, -56.16) |
| CIE-LCH | lch(17.67, 70.45, 307.13°) |
| OKLab | oklab(30.98% 0.0333 -0.162) |
| OKLCH | oklch(30.98% 0.165 281.6) |
| XYZ | xyz(5.0263, 2.4464, 20.2819) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.65
Royal
#0C1793
ΔE00 3.95
Navy
#000080
ΔE00 3.96
Darkblue
#00008B
ΔE00 3.99
Midnight Blue
#191970
ΔE00 4.04
Deep Blue
#040273
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B117F #657F11
analogous
#112E7F #2B117F #62117F
triadic
#2B117F #7F2B11 #117F2B
tetradic
#2B117F #7F112E #657F11 #117F62
square
#2B117F #7F112E #657F11 #117F62
split-complementary
#2B117F #7F6211 #2E7F11
monochromatic
#09041B #190A49 #2B117F #3D18B5 #5428E2
Accessibility & contrast
On white
14.10
#2B117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B117F
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B117F | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b117f; /* rgb */ color: rgb(43, 17, 127); /* oklch */ color: oklch(31.0% 0.165 281.6);
Tailwind
colors: {
custom: {
50: '#7255a5',
500: '#2b117f',
950: '#000000',
},
}SCSS
$custom: #2b117f; $custom-light: #7255a5; $custom-dark: #000000;
JSON
{
"hex": "#2b117f",
"rgb": {
"r": 43,
"g": 17,
"b": 127
},
"hsl": {
"h": 254.182,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.30975,
"c": 0.16542,
"h": 281.6
},
"luminance": 0.02447
}Semantic roles & 50–950 ramp
primary
#2B117F
secondary
#97B537
accent
#F335C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F