#2B42A4#2B42A4
#2B42A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.160 H 268.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42A4 |
|---|---|
| RGB | rgb(43, 66, 164) |
| HSL | hsl(229, 58%, 41%) |
| HSV | hsv(229, 74%, 64%) |
| CMYK | cmyk(73.8%, 59.8%, 0%, 35.7%) |
| CIE-LAB | lab(32.01, 26.26, -55.49) |
| CIE-LCH | lch(32.01, 61.39, 295.33°) |
| OKLab | oklab(42.39% -0.0042 -0.1601) |
| OKLCH | oklch(42.39% 0.16 268.5) |
| XYZ | xyz(9.6430, 7.0893, 35.9749) |
| Luminance | 0.0709 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.30
Cobalt
#0047AB
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.73
Blueberry
#464196
ΔE00 4.83
Cobalt (survey)
#1E488F
ΔE00 5.16
Ocean Blue
#4F42B5
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42A4 #A48D2B
analogous
#2B7EA4 #2B42A4 #502BA4
triadic
#2B42A4 #A42B42 #42A42B
tetradic
#2B42A4 #A42B7E #A48D2B #2BA450
square
#2B42A4 #A42B7E #A48D2B #2BA450
split-complementary
#2B42A4 #A4502B #7EA42B
monochromatic
#121B43 #1E2E74 #2B42A4 #3F5ACD #7084D9
Accessibility & contrast
On white
8.68
#2B42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2B42A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42A4
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42A4 | 1.00 | 8.68 | 2.42 | 8.68 |
| #FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b42a4; /* rgb */ color: rgb(43, 66, 164); /* oklch */ color: oklch(42.4% 0.160 268.5);
Tailwind
colors: {
custom: {
50: '#7676c0',
500: '#2b42a4',
950: '#000000',
},
}SCSS
$custom: #2b42a4; $custom-light: #7676c0; $custom-dark: #000000;
JSON
{
"hex": "#2b42a4",
"rgb": {
"r": 43,
"g": 66,
"b": 164
},
"hsl": {
"h": 228.595,
"s": 58.454,
"l": 40.588
},
"oklch": {
"l": 0.42391,
"c": 0.16018,
"h": 268.5
},
"luminance": 0.0709
}Semantic roles & 50–950 ramp
primary
#2B42A4
secondary
#C1B06A
accent
#C446E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81