#2A45AC#2A45AC
#2A45AC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.168 H 267.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45AC |
|---|---|
| RGB | rgb(42, 69, 172) |
| HSL | hsl(228, 61%, 42%) |
| HSV | hsv(228, 76%, 67%) |
| CMYK | cmyk(75.6%, 59.9%, 0%, 32.5%) |
| CIE-LAB | lab(33.41, 27.16, -58.01) |
| CIE-LCH | lch(33.41, 64.05, 295.09°) |
| OKLab | oklab(43.62% -0.0071 -0.1675) |
| OKLCH | oklch(43.62% 0.168 267.6) |
| XYZ | xyz(10.5268, 7.7259, 39.9582) |
| Luminance | 0.0773 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.13
Blue Blue
#2242C7
ΔE00 3.81
Sapphire (survey)
#2138AB
ΔE00 3.92
Sapphire
#0F52BA
ΔE00 5.30
Cobalt (survey)
#1E488F
ΔE00 5.38
Blueberry
#464196
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45AC #AC912A
analogous
#2A86AC #2A45AC #502AAC
triadic
#2A45AC #AC2A45 #45AC2A
tetradic
#2A45AC #AC2A86 #AC912A #2AAC50
square
#2A45AC #AC2A86 #AC912A #2AAC50
split-complementary
#2A45AC #AC502A #86AC2A
monochromatic
#121E4A #1E317B #2A45AC #4260D1 #7389DD
Accessibility & contrast
On white
8.25
#2A45AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2A45AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45AC
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45AC | 1.00 | 8.25 | 2.55 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a45ac; /* rgb */ color: rgb(42, 69, 172); /* oklch */ color: oklch(43.6% 0.168 267.6);
Tailwind
colors: {
custom: {
50: '#7778c6',
500: '#2a45ac',
950: '#000000',
},
}SCSS
$custom: #2a45ac; $custom-light: #7778c6; $custom-dark: #000000;
JSON
{
"hex": "#2a45ac",
"rgb": {
"r": 42,
"g": 69,
"b": 172
},
"hsl": {
"h": 227.538,
"s": 60.748,
"l": 41.961
},
"oklch": {
"l": 0.43623,
"c": 0.16766,
"h": 267.6
},
"luminance": 0.07727
}Semantic roles & 50–950 ramp
primary
#2A45AC
secondary
#C4B26D
accent
#C344E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82