#2B42A5#2B42A5
#2B42A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.162 H 268.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42A5 |
|---|---|
| RGB | rgb(43, 66, 165) |
| HSL | hsl(229, 59%, 41%) |
| HSV | hsv(229, 74%, 65%) |
| CMYK | cmyk(73.9%, 60%, 0%, 35.3%) |
| CIE-LAB | lab(32.09, 26.64, -55.96) |
| CIE-LCH | lch(32.09, 61.97, 295.46°) |
| OKLab | oklab(42.48% -0.0042 -0.1615) |
| OKLCH | oklch(42.48% 0.162 268.5) |
| XYZ | xyz(9.7337, 7.1256, 36.4524) |
| Luminance | 0.0713 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.23
Cobalt
#0047AB
ΔE00 3.69
Blue Blue
#2242C7
ΔE00 4.59
Blueberry
#464196
ΔE00 4.86
Cobalt (survey)
#1E488F
ΔE00 5.27
Ocean Blue
#4F42B5
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42A5 #A58E2B
analogous
#2B7FA5 #2B42A5 #512BA5
triadic
#2B42A5 #A52B42 #42A52B
tetradic
#2B42A5 #A52B7F #A58E2B #2BA551
square
#2B42A5 #A52B7F #A58E2B #2BA551
split-complementary
#2B42A5 #A5512B #7FA52B
monochromatic
#121B44 #1E2F74 #2B42A5 #405BCD #7184DA
Accessibility & contrast
On white
8.66
#2B42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2B42A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42A5
8.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42A5 | 1.00 | 8.66 | 2.43 | 8.66 |
| #FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b42a5; /* rgb */ color: rgb(43, 66, 165); /* oklch */ color: oklch(42.5% 0.162 268.5);
Tailwind
colors: {
custom: {
50: '#7676c1',
500: '#2b42a5',
950: '#000000',
},
}SCSS
$custom: #2b42a5; $custom-light: #7676c1; $custom-dark: #000000;
JSON
{
"hex": "#2b42a5",
"rgb": {
"r": 43,
"g": 66,
"b": 165
},
"hsl": {
"h": 228.689,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.42478,
"c": 0.16156,
"h": 268.5
},
"luminance": 0.07127
}Semantic roles & 50–950 ramp
primary
#2B42A5
secondary
#C1B16B
accent
#C446E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81