#2A42A3#2A42A3
#2A42A3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.159 H 268.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42A3 |
|---|---|
| RGB | rgb(42, 66, 163) |
| HSL | hsl(228, 59%, 40%) |
| HSV | hsv(228, 74%, 64%) |
| CMYK | cmyk(74.2%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(31.88, 25.76, -55.10) |
| CIE-LCH | lch(31.88, 60.82, 295.05°) |
| OKLab | oklab(42.26% -0.0051 -0.159) |
| OKLCH | oklch(42.26% 0.159 268.2) |
| XYZ | xyz(9.5116, 7.0320, 35.4993) |
| Luminance | 0.0703 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.39
Cobalt
#0047AB
ΔE00 3.57
Blue Blue
#2242C7
ΔE00 4.89
Blueberry
#464196
ΔE00 4.90
Cobalt (survey)
#1E488F
ΔE00 4.97
Ocean Blue
#4F42B5
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42A3 #A38B2A
analogous
#2A7EA3 #2A42A3 #4E2AA3
triadic
#2A42A3 #A32A42 #42A32A
tetradic
#2A42A3 #A32A7E #A38B2A #2AA34E
square
#2A42A3 #A32A7E #A38B2A #2AA34E
split-complementary
#2A42A3 #A34E2A #7EA32A
monochromatic
#111B42 #1D2E72 #2A42A3 #3D5ACD #6E83DA
Accessibility & contrast
On white
8.73
#2A42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2A42A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42A3
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42A3 | 1.00 | 8.73 | 2.41 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2a42a3; /* rgb */ color: rgb(42, 66, 163); /* oklch */ color: oklch(42.3% 0.159 268.2);
Tailwind
colors: {
custom: {
50: '#7576bf',
500: '#2a42a3',
950: '#000000',
},
}SCSS
$custom: #2a42a3; $custom-light: #7576bf; $custom-dark: #000000;
JSON
{
"hex": "#2a42a3",
"rgb": {
"r": 42,
"g": 66,
"b": 163
},
"hsl": {
"h": 228.099,
"s": 59.024,
"l": 40.196
},
"oklch": {
"l": 0.42256,
"c": 0.15909,
"h": 268.2
},
"luminance": 0.07033
}Semantic roles & 50–950 ramp
primary
#2A42A3
secondary
#C0AF68
accent
#C346E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81