#2B42AB#2B42AB
#2B42AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.170 H 268.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42AB |
|---|---|
| RGB | rgb(43, 66, 171) |
| HSL | hsl(229, 60%, 42%) |
| HSV | hsv(229, 75%, 67%) |
| CMYK | cmyk(74.9%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.59, 28.89, -58.74) |
| CIE-LCH | lch(32.59, 65.46, 296.19°) |
| OKLab | oklab(43% -0.0041 -0.1697) |
| OKLCH | oklch(43% 0.17 268.6) |
| XYZ | xyz(10.2926, 7.3492, 39.3963) |
| Luminance | 0.0735 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Blue Blue
#2242C7
ΔE00 3.72
Cobalt
#0047AB
ΔE00 3.85
Blueberry
#464196
ΔE00 5.17
Ocean Blue
#4F42B5
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42AB #AB942B
analogous
#2B82AB #2B42AB #542BAB
triadic
#2B42AB #AB2B42 #42AB2B
tetradic
#2B42AB #AB2B82 #AB942B #2BAB54
square
#2B42AB #AB2B82 #AB942B #2BAB54
split-complementary
#2B42AB #AB542B #82AB2B
monochromatic
#121C49 #1F2F7A #2B42AB #435DD0 #7487DC
Accessibility & contrast
On white
8.50
#2B42AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2B42AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42AB
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42AB | 1.00 | 8.50 | 2.47 | 8.50 |
| #FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b42ab; /* rgb */ color: rgb(43, 66, 171); /* oklch */ color: oklch(43.0% 0.170 268.6);
Tailwind
colors: {
custom: {
50: '#7776c5',
500: '#2b42ab',
950: '#000000',
},
}SCSS
$custom: #2b42ab; $custom-light: #7776c5; $custom-dark: #000000;
JSON
{
"hex": "#2b42ab",
"rgb": {
"r": 43,
"g": 66,
"b": 171
},
"hsl": {
"h": 229.219,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.43003,
"c": 0.16973,
"h": 268.6
},
"luminance": 0.0735
}Semantic roles & 50–950 ramp
primary
#2B42AB
secondary
#C4B46E
accent
#C745E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82