#2B2187#2B2187
#2B2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.161 H 277.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2B2187 |
|---|---|
| RGB | rgb(43, 33, 135) |
| HSL | hsl(246, 61%, 33%) |
| HSV | hsv(246, 76%, 53%) |
| CMYK | cmyk(68.1%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(21.39, 36.92, -55.07) |
| CIE-LCH | lch(21.39, 66.30, 303.84°) |
| OKLab | oklab(33.84% 0.0219 -0.159) |
| OKLCH | oklch(33.84% 0.161 277.8) |
| XYZ | xyz(5.9119, 3.3501, 23.2521) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.48
Midnight Blue
#191970
ΔE00 4.23
Indigo (survey)
#380282
ΔE00 5.64
Cobalt Blue
#030AA7
ΔE00 5.98
Darkblue
#00008B
ΔE00 6.20
Indigo Blue
#3A18B1
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B2187 #7D8721
analogous
#214A87 #2B2187 #5E2187
triadic
#2B2187 #872B21 #21872B
tetradic
#2B2187 #87214A #7D8721 #21875E
square
#2B2187 #87214A #7D8721 #21875E
split-complementary
#2B2187 #875E21 #4A8721
monochromatic
#0C0925 #1B1556 #2B2187 #3B2DB8 #5C4FD4
Accessibility & contrast
On white
12.57
#2B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2B2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B2187
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B2187 | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2b2187; /* rgb */ color: rgb(43, 33, 135); /* oklch */ color: oklch(33.8% 0.161 277.8);
Tailwind
colors: {
custom: {
50: '#725eab',
500: '#2b2187',
950: '#000000',
},
}SCSS
$custom: #2b2187; $custom-light: #725eab; $custom-dark: #000000;
JSON
{
"hex": "#2b2187",
"rgb": {
"r": 43,
"g": 33,
"b": 135
},
"hsl": {
"h": 245.882,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.33835,
"c": 0.16055,
"h": 277.8
},
"luminance": 0.03351
}Semantic roles & 50–950 ramp
primary
#2B2187
secondary
#ADB74D
accent
#E444D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F