#2B42A8#2B42A8
#2B42A8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.166 H 268.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42A8 |
|---|---|
| RGB | rgb(43, 66, 168) |
| HSL | hsl(229, 59%, 41%) |
| HSV | hsv(229, 74%, 66%) |
| CMYK | cmyk(74.4%, 60.7%, 0%, 34.1%) |
| CIE-LAB | lab(32.34, 27.77, -57.35) |
| CIE-LCH | lch(32.34, 63.72, 295.83°) |
| OKLab | oklab(42.74% -0.0041 -0.1656) |
| OKLCH | oklch(42.74% 0.166 268.6) |
| XYZ | xyz(10.0099, 7.2361, 37.9074) |
| Luminance | 0.0724 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.07
Cobalt
#0047AB
ΔE00 3.74
Blue Blue
#2242C7
ΔE00 4.15
Blueberry
#464196
ΔE00 5.00
Cobalt (survey)
#1E488F
ΔE00 5.60
Ocean Blue
#4F42B5
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42A8 #A8912B
analogous
#2B81A8 #2B42A8 #532BA8
triadic
#2B42A8 #A82B42 #42A82B
tetradic
#2B42A8 #A82B81 #A8912B #2BA853
square
#2B42A8 #A82B81 #A8912B #2BA853
split-complementary
#2B42A8 #A8532B #81A82B
monochromatic
#121C47 #1F2F77 #2B42A8 #425CCF #7286DB
Accessibility & contrast
On white
8.58
#2B42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2B42A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42A8
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42A8 | 1.00 | 8.58 | 2.45 | 8.58 |
| #FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2b42a8; /* rgb */ color: rgb(43, 66, 168); /* oklch */ color: oklch(42.7% 0.166 268.6);
Tailwind
colors: {
custom: {
50: '#7776c3',
500: '#2b42a8',
950: '#000000',
},
}SCSS
$custom: #2b42a8; $custom-light: #7776c3; $custom-dark: #000000;
JSON
{
"hex": "#2b42a8",
"rgb": {
"r": 43,
"g": 66,
"b": 168
},
"hsl": {
"h": 228.96,
"s": 59.242,
"l": 41.373
},
"oklch": {
"l": 0.42739,
"c": 0.16566,
"h": 268.6
},
"luminance": 0.07237
}Semantic roles & 50–950 ramp
primary
#2B42A8
secondary
#C2B36C
accent
#C645E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82