#2A45A0#2A45A0
#2A45A0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.151 H 267.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45A0 |
|---|---|
| RGB | rgb(42, 69, 160) |
| HSL | hsl(226, 58%, 40%) |
| HSV | hsv(226, 74%, 63%) |
| CMYK | cmyk(73.8%, 56.9%, 0%, 37.3%) |
| CIE-LAB | lab(32.45, 22.61, -52.37) |
| CIE-LCH | lch(32.45, 57.04, 293.35°) |
| OKLab | oklab(42.61% -0.0076 -0.1509) |
| OKLCH | oklch(42.61% 0.151 267.1) |
| XYZ | xyz(9.4259, 7.2856, 34.1604) |
| Luminance | 0.0729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.98
Cobalt (survey)
#1E488F
ΔE00 3.90
Sapphire (survey)
#2138AB
ΔE00 4.58
Blueberry
#464196
ΔE00 5.32
Blue Blue
#2242C7
ΔE00 5.55
Sapphire
#0F52BA
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45A0 #A0852A
analogous
#2A80A0 #2A45A0 #4A2AA0
triadic
#2A45A0 #A02A45 #45A02A
tetradic
#2A45A0 #A02A80 #A0852A #2AA04A
square
#2A45A0 #A02A80 #A0852A #2AA04A
split-complementary
#2A45A0 #A04A2A #80A02A
monochromatic
#111B3F #1D3070 #2A45A0 #3C5DCC #6C85D8
Accessibility & contrast
On white
8.55
#2A45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2A45A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45A0
8.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45A0 | 1.00 | 8.55 | 2.46 | 8.55 |
| #FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2a45a0; /* rgb */ color: rgb(42, 69, 160); /* oklch */ color: oklch(42.6% 0.151 267.1);
Tailwind
colors: {
custom: {
50: '#7478bd',
500: '#2a45a0',
950: '#000000',
},
}SCSS
$custom: #2a45a0; $custom-light: #7478bd; $custom-dark: #000000;
JSON
{
"hex": "#2a45a0",
"rgb": {
"r": 42,
"g": 69,
"b": 160
},
"hsl": {
"h": 226.271,
"s": 58.416,
"l": 39.608
},
"oklch": {
"l": 0.42607,
"c": 0.15113,
"h": 267.1
},
"luminance": 0.07287
}Semantic roles & 50–950 ramp
primary
#2A45A0
secondary
#BFAB67
accent
#BE46E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81