#2A45B5#2A45B5
#2A45B5 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.4% C 0.180 H 267.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45B5 |
|---|---|
| RGB | rgb(42, 69, 181) |
| HSL | hsl(228, 62%, 44%) |
| HSV | hsv(228, 77%, 71%) |
| CMYK | cmyk(76.8%, 61.9%, 0%, 29%) |
| CIE-LAB | lab(34.16, 30.54, -62.13) |
| CIE-LCH | lch(34.16, 69.23, 296.18°) |
| OKLab | oklab(44.41% -0.0071 -0.1796) |
| OKLCH | oklch(44.41% 0.18 267.7) |
| XYZ | xyz(11.4206, 8.0834, 44.6655) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.56
Cobalt
#0047AB
ΔE00 3.78
Sapphire (survey)
#2138AB
ΔE00 3.97
Blue (survey)
#0343DF
ΔE00 5.19
Ocean Blue
#4F42B5
ΔE00 5.29
Sapphire
#0F52BA
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45B5 #B59A2A
analogous
#2A8AB5 #2A45B5 #542AB5
triadic
#2A45B5 #B52A45 #45B52A
tetradic
#2A45B5 #B52A8A #B59A2A #2AB554
square
#2A45B5 #B52A8A #B59A2A #2AB554
split-complementary
#2A45B5 #B5542A #8AB52A
monochromatic
#131F52 #1E3283 #2A45B5 #4863D4 #798DE0
Accessibility & contrast
On white
8.02
#2A45B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#2A45B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45B5
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45B5 | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2a45b5; /* rgb */ color: rgb(42, 69, 181); /* oklch */ color: oklch(44.4% 0.180 267.7);
Tailwind
colors: {
custom: {
50: '#7978cc',
500: '#2a45b5',
950: '#000000',
},
}SCSS
$custom: #2a45b5; $custom-light: #7978cc; $custom-dark: #000000;
JSON
{
"hex": "#2a45b5",
"rgb": {
"r": 42,
"g": 69,
"b": 181
},
"hsl": {
"h": 228.345,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.44414,
"c": 0.17974,
"h": 267.7
},
"luminance": 0.08085
}Semantic roles & 50–950 ramp
primary
#2A45B5
secondary
#C8B773
accent
#C642E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82