#2A45A5#2A45A5
#2A45A5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.0% C 0.158 H 267.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45A5 |
|---|---|
| RGB | rgb(42, 69, 165) |
| HSL | hsl(227, 59%, 41%) |
| HSV | hsv(227, 75%, 65%) |
| CMYK | cmyk(74.5%, 58.2%, 0%, 35.3%) |
| CIE-LAB | lab(32.84, 24.51, -54.74) |
| CIE-LCH | lch(32.84, 59.98, 294.12°) |
| OKLab | oklab(43.02% -0.0073 -0.1579) |
| OKLCH | oklch(43.02% 0.158 267.3) |
| XYZ | xyz(9.8721, 7.4640, 36.5104) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.92
Sapphire (survey)
#2138AB
ΔE00 4.22
Cobalt (survey)
#1E488F
ΔE00 4.51
Blue Blue
#2242C7
ΔE00 4.82
Blueberry
#464196
ΔE00 5.38
Sapphire
#0F52BA
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45A5 #A58A2A
analogous
#2A82A5 #2A45A5 #4C2AA5
triadic
#2A45A5 #A52A45 #45A52A
tetradic
#2A45A5 #A52A82 #A58A2A #2AA54C
square
#2A45A5 #A52A82 #A58A2A #2AA54C
split-complementary
#2A45A5 #A54C2A #82A52A
monochromatic
#111C43 #1E3174 #2A45A5 #3E5ECE #6F87DA
Accessibility & contrast
On white
8.42
#2A45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2A45A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45A5
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45A5 | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a45a5; /* rgb */ color: rgb(42, 69, 165); /* oklch */ color: oklch(43.0% 0.158 267.3);
Tailwind
colors: {
custom: {
50: '#7578c0',
500: '#2a45a5',
950: '#000000',
},
}SCSS
$custom: #2a45a5; $custom-light: #7578c0; $custom-dark: #000000;
JSON
{
"hex": "#2a45a5",
"rgb": {
"r": 42,
"g": 69,
"b": 165
},
"hsl": {
"h": 226.829,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.43024,
"c": 0.15808,
"h": 267.3
},
"luminance": 0.07465
}Semantic roles & 50–950 ramp
primary
#2A45A5
secondary
#C1AE69
accent
#C045E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81