#2A3AA4#2A3AA4
#2A3AA4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.170 H 270.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3AA4 |
|---|---|
| RGB | rgb(42, 58, 164) |
| HSL | hsl(232, 59%, 40%) |
| HSV | hsv(232, 74%, 64%) |
| CMYK | cmyk(74.4%, 64.6%, 0%, 35.7%) |
| CIE-LAB | lab(29.91, 31.42, -58.93) |
| CIE-LCH | lch(29.91, 66.78, 298.07°) |
| OKLab | oklab(40.82% 0.0005 -0.1703) |
| OKLCH | oklch(40.82% 0.17 270.2) |
| XYZ | xyz(9.1665, 6.1977, 35.8280) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.26
Blueberry
#464196
ΔE00 4.81
Blue Blue
#2242C7
ΔE00 5.08
Cobalt
#0047AB
ΔE00 5.74
Ocean Blue
#4F42B5
ΔE00 5.77
Darkslateblue
#483D8B
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3AA4 #A4942A
analogous
#2A77A4 #2A3AA4 #572AA4
triadic
#2A3AA4 #A42A3A #3AA42A
tetradic
#2A3AA4 #A42A77 #A4942A #2AA457
square
#2A3AA4 #A42A77 #A4942A #2AA457
split-complementary
#2A3AA4 #A4572A #77A42A
monochromatic
#111843 #1E2973 #2A3AA4 #3E51CD #6E7DDA
Accessibility & contrast
On white
9.38
#2A3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#2A3AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3AA4
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3AA4 | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a3aa4; /* rgb */ color: rgb(42, 58, 164); /* oklch */ color: oklch(40.8% 0.170 270.2);
Tailwind
colors: {
custom: {
50: '#7670c0',
500: '#2a3aa4',
950: '#000000',
},
}SCSS
$custom: #2a3aa4; $custom-light: #7670c0; $custom-dark: #000000;
JSON
{
"hex": "#2a3aa4",
"rgb": {
"r": 42,
"g": 58,
"b": 164
},
"hsl": {
"h": 232.131,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.40821,
"c": 0.17033,
"h": 270.2
},
"luminance": 0.06199
}Semantic roles & 50–950 ramp
primary
#2A3AA4
secondary
#C1B569
accent
#CE45E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81