#2B217F#2B217F
#2B217F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 279.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2B217F |
|---|---|
| RGB | rgb(43, 33, 127) |
| HSL | hsl(246, 59%, 31%) |
| HSV | hsv(246, 74%, 50%) |
| CMYK | cmyk(66.1%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(20.57, 34.23, -51.38) |
| CIE-LCH | lch(20.57, 61.74, 303.67°) |
| OKLab | oklab(33% 0.0236 -0.1483) |
| OKLCH | oklch(33% 0.15 279) |
| XYZ | xyz(5.3697, 3.1332, 20.3964) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Royal
#0C1793
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 5.82
Dark Royal Blue
#02066F
ΔE00 6.52
Darkblue
#00008B
ΔE00 6.62
Navy
#000080
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B217F #757F21
analogous
#21467F #2B217F #5A217F
triadic
#2B217F #7F2B21 #217F2B
tetradic
#2B217F #7F2146 #757F21 #217F5A
square
#2B217F #7F2146 #757F21 #217F5A
split-complementary
#2B217F #7F5A21 #467F21
monochromatic
#0A081E #1B144E #2B217F #3B2EB0 #594AD0
Accessibility & contrast
On white
12.91
#2B217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2B217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B217F
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B217F | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b217f; /* rgb */ color: rgb(43, 33, 127); /* oklch */ color: oklch(33.0% 0.150 279.0);
Tailwind
colors: {
custom: {
50: '#705ea5',
500: '#2b217f',
950: '#000000',
},
}SCSS
$custom: #2b217f; $custom-light: #705ea5; $custom-dark: #000000;
JSON
{
"hex": "#2b217f",
"rgb": {
"r": 43,
"g": 33,
"b": 127
},
"hsl": {
"h": 246.383,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33,
"c": 0.15016,
"h": 279
},
"luminance": 0.03134
}Semantic roles & 50–950 ramp
primary
#2B217F
secondary
#A7B24A
accent
#E246D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F