#2B2FA2#2B2FA2
#2B2FA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.180 H 272.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2B2FA2 |
|---|---|
| RGB | rgb(43, 47, 162) |
| HSL | hsl(238, 58%, 40%) |
| HSV | hsv(238, 73%, 64%) |
| CMYK | cmyk(73.5%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(27.17, 37.80, -62.21) |
| CIE-LCH | lch(27.17, 72.79, 301.28°) |
| OKLab | oklab(38.79% 0.0086 -0.1799) |
| OKLCH | oklch(38.79% 0.18 272.7) |
| XYZ | xyz(8.5322, 5.1544, 34.7207) |
| Luminance | 0.0515 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.04
Indigo Blue
#3A18B1
ΔE00 5.56
Royal
#0C1793
ΔE00 6.09
Blueberry
#464196
ΔE00 6.29
Ocean Blue
#4F42B5
ΔE00 6.89
Darkslateblue
#483D8B
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B2FA2 #A29E2B
analogous
#2B6BA2 #2B2FA2 #622BA2
triadic
#2B2FA2 #A22B2F #2FA22B
tetradic
#2B2FA2 #A22B6B #A29E2B #2BA262
square
#2B2FA2 #A22B6B #A29E2B #2BA262
split-complementary
#2B2FA2 #A2622B #6BA22B
monochromatic
#111341 #1E2172 #2B2FA2 #3E43CC #6F72D9
Accessibility & contrast
On white
10.34
#2B2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#2B2FA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B2FA2
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B2FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B2FA2 | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2b2fa2; /* rgb */ color: rgb(43, 47, 162); /* oklch */ color: oklch(38.8% 0.180 272.7);
Tailwind
colors: {
custom: {
50: '#7768bf',
500: '#2b2fa2',
950: '#000000',
},
}SCSS
$custom: #2b2fa2; $custom-light: #7768bf; $custom-dark: #000000;
JSON
{
"hex": "#2b2fa2",
"rgb": {
"r": 43,
"g": 47,
"b": 162
},
"hsl": {
"h": 237.983,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.3879,
"c": 0.18014,
"h": 272.7
},
"luminance": 0.05155
}Semantic roles & 50–950 ramp
primary
#2B2FA2
secondary
#C0BD69
accent
#DC47E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81