#2B218A#2B218A
#2B218A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 277.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2B218A |
|---|---|
| RGB | rgb(43, 33, 138) |
| HSL | hsl(246, 61%, 34%) |
| HSV | hsv(246, 76%, 54%) |
| CMYK | cmyk(68.8%, 76.1%, 0%, 45.9%) |
| CIE-LAB | lab(21.71, 37.92, -56.43) |
| CIE-LCH | lch(21.71, 67.99, 303.90°) |
| OKLab | oklab(34.15% 0.0212 -0.163) |
| OKLCH | oklch(34.15% 0.164 277.4) |
| XYZ | xyz(6.1261, 3.4358, 24.3802) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Midnight Blue
#191970
ΔE00 4.61
Cobalt Blue
#030AA7
ΔE00 5.63
Indigo (survey)
#380282
ΔE00 5.65
Indigo Blue
#3A18B1
ΔE00 6.04
Darkblue
#00008B
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B218A #808A21
analogous
#214B8A #2B218A #5F218A
triadic
#2B218A #8A2B21 #218A2B
tetradic
#2B218A #8A214B #808A21 #218A5F
square
#2B218A #8A214B #808A21 #218A5F
split-complementary
#2B218A #8A5F21 #4B8A21
monochromatic
#0C0927 #1C1559 #2B218A #3A2DBB #5D50D5
Accessibility & contrast
On white
12.45
#2B218A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2B218A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B218A
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B218A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B218A | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2b218a; /* rgb */ color: rgb(43, 33, 138); /* oklch */ color: oklch(34.2% 0.164 277.4);
Tailwind
colors: {
custom: {
50: '#735ead',
500: '#2b218a',
950: '#000000',
},
}SCSS
$custom: #2b218a; $custom-light: #735ead; $custom-dark: #000000;
JSON
{
"hex": "#2b218a",
"rgb": {
"r": 43,
"g": 33,
"b": 138
},
"hsl": {
"h": 245.714,
"s": 61.404,
"l": 33.529
},
"oklch": {
"l": 0.34154,
"c": 0.16439,
"h": 277.4
},
"luminance": 0.03436
}Semantic roles & 50–950 ramp
primary
#2B218A
secondary
#AEB94E
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F