#2B42A2#2B42A2
#2B42A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.157 H 268.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42A2 |
|---|---|
| RGB | rgb(43, 66, 162) |
| HSL | hsl(228, 58%, 40%) |
| HSV | hsv(228, 73%, 64%) |
| CMYK | cmyk(73.5%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.85, 25.51, -54.55) |
| CIE-LCH | lch(31.85, 60.22, 295.06°) |
| OKLab | oklab(42.22% -0.0042 -0.1574) |
| OKLCH | oklch(42.22% 0.157 268.5) |
| XYZ | xyz(9.4638, 7.0177, 35.0312) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.45
Cobalt
#0047AB
ΔE00 3.68
Blueberry
#464196
ΔE00 4.77
Cobalt (survey)
#1E488F
ΔE00 4.95
Blue Blue
#2242C7
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42A2 #A28B2B
analogous
#2B7EA2 #2B42A2 #4F2BA2
triadic
#2B42A2 #A22B42 #42A22B
tetradic
#2B42A2 #A22B7E #A28B2B #2BA24F
square
#2B42A2 #A22B7E #A28B2B #2BA24F
split-complementary
#2B42A2 #A24F2B #7EA22B
monochromatic
#111B41 #1E2E72 #2B42A2 #3E5ACC #6F83D9
Accessibility & contrast
On white
8.74
#2B42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2B42A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42A2
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42A2 | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b42a2; /* rgb */ color: rgb(43, 66, 162); /* oklch */ color: oklch(42.2% 0.157 268.5);
Tailwind
colors: {
custom: {
50: '#7576be',
500: '#2b42a2',
950: '#000000',
},
}SCSS
$custom: #2b42a2; $custom-light: #7576be; $custom-dark: #000000;
JSON
{
"hex": "#2b42a2",
"rgb": {
"r": 43,
"g": 66,
"b": 162
},
"hsl": {
"h": 228.403,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.42219,
"c": 0.15743,
"h": 268.5
},
"luminance": 0.07019
}Semantic roles & 50–950 ramp
primary
#2B42A2
secondary
#C0AF69
accent
#C347E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81