#2B217B#2B217B
#2B217B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.145 H 279.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2B217B |
|---|---|
| RGB | rgb(43, 33, 123) |
| HSL | hsl(247, 58%, 31%) |
| HSV | hsv(247, 73%, 48%) |
| CMYK | cmyk(65%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(20.17, 32.87, -49.50) |
| CIE-LCH | lch(20.17, 59.42, 303.58°) |
| OKLab | oklab(32.59% 0.0244 -0.1428) |
| OKLCH | oklch(32.59% 0.145 279.7) |
| XYZ | xyz(5.1141, 3.0310, 19.0506) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Royal
#0C1793
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 6.03
Dark Royal Blue
#02066F
ΔE00 6.45
Deep Blue
#040273
ΔE00 6.82
Navy
#000080
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B217B #717B21
analogous
#21447B #2B217B #58217B
triadic
#2B217B #7B2B21 #217B2B
tetradic
#2B217B #7B2144 #717B21 #217B58
square
#2B217B #7B2144 #717B21 #217B58
split-complementary
#2B217B #7B5821 #447B21
monochromatic
#09071A #1A144B #2B217B #3C2EAB #5748CE
Accessibility & contrast
On white
13.07
#2B217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2B217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B217B
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B217B | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2b217b; /* rgb */ color: rgb(43, 33, 123); /* oklch */ color: oklch(32.6% 0.145 279.7);
Tailwind
colors: {
custom: {
50: '#6f5da2',
500: '#2b217b',
950: '#000000',
},
}SCSS
$custom: #2b217b; $custom-light: #6f5da2; $custom-dark: #000000;
JSON
{
"hex": "#2b217b",
"rgb": {
"r": 43,
"g": 33,
"b": 123
},
"hsl": {
"h": 246.667,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.32591,
"c": 0.14486,
"h": 279.7
},
"luminance": 0.03031
}Semantic roles & 50–950 ramp
primary
#2B217B
secondary
#A3AE4A
accent
#E147D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F