#2A45A2#2A45A2
#2A45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.154 H 267.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45A2 |
|---|---|
| RGB | rgb(42, 69, 162) |
| HSL | hsl(227, 59%, 40%) |
| HSV | hsv(227, 74%, 64%) |
| CMYK | cmyk(74.1%, 57.4%, 0%, 36.5%) |
| CIE-LAB | lab(32.60, 23.37, -53.32) |
| CIE-LCH | lch(32.60, 58.22, 293.67°) |
| OKLab | oklab(42.77% -0.0075 -0.1537) |
| OKLCH | oklch(42.77% 0.154 267.2) |
| XYZ | xyz(9.6023, 7.3561, 35.0892) |
| Luminance | 0.0736 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.93
Cobalt (survey)
#1E488F
ΔE00 4.14
Sapphire (survey)
#2138AB
ΔE00 4.42
Blue Blue
#2242C7
ΔE00 5.26
Blueberry
#464196
ΔE00 5.33
Sapphire
#0F52BA
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45A2 #A2872A
analogous
#2A81A2 #2A45A2 #4B2AA2
triadic
#2A45A2 #A22A45 #45A22A
tetradic
#2A45A2 #A22A81 #A2872A #2AA24B
square
#2A45A2 #A22A81 #A2872A #2AA24B
split-complementary
#2A45A2 #A24B2A #81A22A
monochromatic
#111C41 #1D3071 #2A45A2 #3D5DCD #6D85D9
Accessibility & contrast
On white
8.50
#2A45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2A45A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45A2
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45A2 | 1.00 | 8.50 | 2.47 | 8.50 |
| #FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a45a2; /* rgb */ color: rgb(42, 69, 162); /* oklch */ color: oklch(42.8% 0.154 267.2);
Tailwind
colors: {
custom: {
50: '#7578be',
500: '#2a45a2',
950: '#000000',
},
}SCSS
$custom: #2a45a2; $custom-light: #7578be; $custom-dark: #000000;
JSON
{
"hex": "#2a45a2",
"rgb": {
"r": 42,
"g": 69,
"b": 162
},
"hsl": {
"h": 226.5,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.42773,
"c": 0.15392,
"h": 267.2
},
"luminance": 0.07357
}Semantic roles & 50–950 ramp
primary
#2A45A2
secondary
#C0AC68
accent
#BF46E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81