#2A45A4#2A45A4
#2A45A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.157 H 267.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45A4 |
|---|---|
| RGB | rgb(42, 69, 164) |
| HSL | hsl(227, 59%, 40%) |
| HSV | hsv(227, 74%, 64%) |
| CMYK | cmyk(74.4%, 57.9%, 0%, 35.7%) |
| CIE-LAB | lab(32.76, 24.13, -54.27) |
| CIE-LCH | lch(32.76, 59.39, 293.97°) |
| OKLab | oklab(42.94% -0.0074 -0.1565) |
| OKLCH | oklch(42.94% 0.157 267.3) |
| XYZ | xyz(9.7815, 7.4278, 36.0330) |
| Luminance | 0.0743 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.91
Sapphire (survey)
#2138AB
ΔE00 4.28
Cobalt (survey)
#1E488F
ΔE00 4.39
Blue Blue
#2242C7
ΔE00 4.96
Blueberry
#464196
ΔE00 5.36
Sapphire
#0F52BA
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45A4 #A4892A
analogous
#2A82A4 #2A45A4 #4C2AA4
triadic
#2A45A4 #A42A45 #45A42A
tetradic
#2A45A4 #A42A82 #A4892A #2AA44C
square
#2A45A4 #A42A82 #A4892A #2AA44C
split-complementary
#2A45A4 #A44C2A #82A42A
monochromatic
#111C43 #1E3173 #2A45A4 #3E5ECD #6E86DA
Accessibility & contrast
On white
8.45
#2A45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2A45A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45A4
8.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45A4 | 1.00 | 8.45 | 2.49 | 8.45 |
| #FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a45a4; /* rgb */ color: rgb(42, 69, 164); /* oklch */ color: oklch(42.9% 0.157 267.3);
Tailwind
colors: {
custom: {
50: '#7578c0',
500: '#2a45a4',
950: '#000000',
},
}SCSS
$custom: #2a45a4; $custom-light: #7578c0; $custom-dark: #000000;
JSON
{
"hex": "#2a45a4",
"rgb": {
"r": 42,
"g": 69,
"b": 164
},
"hsl": {
"h": 226.721,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.4294,
"c": 0.15669,
"h": 267.3
},
"luminance": 0.07429
}Semantic roles & 50–950 ramp
primary
#2A45A4
secondary
#C1AD69
accent
#C045E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81