#2B42AC#2B42AC
#2B42AC is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.171 H 268.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42AC |
|---|---|
| RGB | rgb(43, 66, 172) |
| HSL | hsl(229, 60%, 42%) |
| HSV | hsv(229, 75%, 67%) |
| CMYK | cmyk(75%, 61.6%, 0%, 32.5%) |
| CIE-LAB | lab(32.67, 29.26, -59.20) |
| CIE-LCH | lch(32.67, 66.04, 296.30°) |
| OKLab | oklab(43.09% -0.0041 -0.171) |
| OKLCH | oklch(43.09% 0.171 268.6) |
| XYZ | xyz(10.3883, 7.3875, 39.9002) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.95
Blue Blue
#2242C7
ΔE00 3.58
Cobalt
#0047AB
ΔE00 3.89
Blueberry
#464196
ΔE00 5.23
Ocean Blue
#4F42B5
ΔE00 5.35
Cobalt (survey)
#1E488F
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42AC #AC952B
analogous
#2B83AC #2B42AC #542BAC
triadic
#2B42AC #AC2B42 #42AC2B
tetradic
#2B42AC #AC2B83 #AC952B #2BAC54
square
#2B42AC #AC2B83 #AC952B #2BAC54
split-complementary
#2B42AC #AC542B #83AC2B
monochromatic
#131C4A #1F2F7B #2B42AC #445DD0 #7587DC
Accessibility & contrast
On white
8.48
#2B42AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2B42AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42AC
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42AC | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b42ac; /* rgb */ color: rgb(43, 66, 172); /* oklch */ color: oklch(43.1% 0.171 268.6);
Tailwind
colors: {
custom: {
50: '#7876c6',
500: '#2b42ac',
950: '#000000',
},
}SCSS
$custom: #2b42ac; $custom-light: #7876c6; $custom-dark: #000000;
JSON
{
"hex": "#2b42ac",
"rgb": {
"r": 43,
"g": 66,
"b": 172
},
"hsl": {
"h": 229.302,
"s": 60,
"l": 42.157
},
"oklch": {
"l": 0.43091,
"c": 0.17108,
"h": 268.6
},
"luminance": 0.07389
}Semantic roles & 50–950 ramp
primary
#2B42AC
secondary
#C4B56F
accent
#C745E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82