#2A45A8#2A45A8
#2A45A8 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.162 H 267.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45A8 |
|---|---|
| RGB | rgb(42, 69, 168) |
| HSL | hsl(227, 60%, 41%) |
| HSV | hsv(227, 75%, 66%) |
| CMYK | cmyk(75%, 58.9%, 0%, 34.1%) |
| CIE-LAB | lab(33.08, 25.65, -56.15) |
| CIE-LCH | lch(33.08, 61.73, 294.55°) |
| OKLab | oklab(43.28% -0.0072 -0.162) |
| OKLCH | oklch(43.28% 0.162 267.4) |
| XYZ | xyz(10.1484, 7.5745, 37.9654) |
| Luminance | 0.0758 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.97
Sapphire (survey)
#2138AB
ΔE00 4.06
Blue Blue
#2242C7
ΔE00 4.38
Cobalt (survey)
#1E488F
ΔE00 4.88
Sapphire
#0F52BA
ΔE00 5.38
Blueberry
#464196
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45A8 #A88D2A
analogous
#2A84A8 #2A45A8 #4E2AA8
triadic
#2A45A8 #A82A45 #45A82A
tetradic
#2A45A8 #A82A84 #A88D2A #2AA84E
square
#2A45A8 #A82A84 #A88D2A #2AA84E
split-complementary
#2A45A8 #A84E2A #84A82A
monochromatic
#121D46 #1E3177 #2A45A8 #405FCF #7188DB
Accessibility & contrast
On white
8.35
#2A45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#2A45A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45A8
8.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45A8 | 1.00 | 8.35 | 2.52 | 8.35 |
| #FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2a45a8; /* rgb */ color: rgb(42, 69, 168); /* oklch */ color: oklch(43.3% 0.162 267.4);
Tailwind
colors: {
custom: {
50: '#7678c3',
500: '#2a45a8',
950: '#000000',
},
}SCSS
$custom: #2a45a8; $custom-light: #7678c3; $custom-dark: #000000;
JSON
{
"hex": "#2a45a8",
"rgb": {
"r": 42,
"g": 69,
"b": 168
},
"hsl": {
"h": 227.143,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.43279,
"c": 0.1622,
"h": 267.4
},
"luminance": 0.07576
}Semantic roles & 50–950 ramp
primary
#2A45A8
secondary
#C3B06B
accent
#C145E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81