#2A42A4#2A42A4
#2A42A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.160 H 268.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42A4 |
|---|---|
| RGB | rgb(42, 66, 164) |
| HSL | hsl(228, 59%, 40%) |
| HSV | hsv(228, 74%, 64%) |
| CMYK | cmyk(74.4%, 59.8%, 0%, 35.7%) |
| CIE-LAB | lab(31.96, 26.14, -55.57) |
| CIE-LCH | lch(31.96, 61.41, 295.19°) |
| OKLab | oklab(42.34% -0.0051 -0.1604) |
| OKLCH | oklch(42.34% 0.16 268.2) |
| XYZ | xyz(9.6016, 7.0680, 35.9730) |
| Luminance | 0.0707 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.32
Cobalt
#0047AB
ΔE00 3.57
Blue Blue
#2242C7
ΔE00 4.75
Blueberry
#464196
ΔE00 4.93
Cobalt (survey)
#1E488F
ΔE00 5.08
Ocean Blue
#4F42B5
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42A4 #A48C2A
analogous
#2A7FA4 #2A42A4 #4F2AA4
triadic
#2A42A4 #A42A42 #42A42A
tetradic
#2A42A4 #A42A7F #A48C2A #2AA44F
square
#2A42A4 #A42A7F #A48C2A #2AA44F
split-complementary
#2A42A4 #A44F2A #7FA42A
monochromatic
#111B43 #1E2E73 #2A42A4 #3E5ACD #6E84DA
Accessibility & contrast
On white
8.70
#2A42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2A42A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42A4
8.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42A4 | 1.00 | 8.70 | 2.41 | 8.70 |
| #FFFFFF | 8.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.70 | 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: #2a42a4; /* rgb */ color: rgb(42, 66, 164); /* oklch */ color: oklch(42.3% 0.160 268.2);
Tailwind
colors: {
custom: {
50: '#7576c0',
500: '#2a42a4',
950: '#000000',
},
}SCSS
$custom: #2a42a4; $custom-light: #7576c0; $custom-dark: #000000;
JSON
{
"hex": "#2a42a4",
"rgb": {
"r": 42,
"g": 66,
"b": 164
},
"hsl": {
"h": 228.197,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.42342,
"c": 0.16047,
"h": 268.2
},
"luminance": 0.07069
}Semantic roles & 50–950 ramp
primary
#2A42A4
secondary
#C1B069
accent
#C445E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81