#2A45B1#2A45B1
#2A45B1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.174 H 267.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45B1 |
|---|---|
| RGB | rgb(42, 69, 177) |
| HSL | hsl(228, 62%, 43%) |
| HSV | hsv(228, 76%, 69%) |
| CMYK | cmyk(76.3%, 61%, 0%, 30.6%) |
| CIE-LAB | lab(33.82, 29.04, -60.31) |
| CIE-LCH | lch(33.82, 66.94, 295.71°) |
| OKLab | oklab(44.06% -0.0071 -0.1743) |
| OKLCH | oklch(44.06% 0.174 267.7) |
| XYZ | xyz(11.0160, 7.9216, 42.5349) |
| Luminance | 0.0792 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.11
Cobalt
#0047AB
ΔE00 3.45
Sapphire (survey)
#2138AB
ΔE00 3.89
Sapphire
#0F52BA
ΔE00 5.27
Ocean Blue
#4F42B5
ΔE00 5.52
Blue (survey)
#0343DF
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45B1 #B1962A
analogous
#2A88B1 #2A45B1 #522AB1
triadic
#2A45B1 #B12A45 #45B12A
tetradic
#2A45B1 #B12A88 #B1962A #2AB152
square
#2A45B1 #B12A88 #B1962A #2AB152
split-complementary
#2A45B1 #B1522A #88B12A
monochromatic
#131E4E #1E3280 #2A45B1 #4562D3 #778CDF
Accessibility & contrast
On white
8.13
#2A45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#2A45B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45B1
8.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45B1 | 1.00 | 8.13 | 2.58 | 8.13 |
| #FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2a45b1; /* rgb */ color: rgb(42, 69, 177); /* oklch */ color: oklch(44.1% 0.174 267.7);
Tailwind
colors: {
custom: {
50: '#7878c9',
500: '#2a45b1',
950: '#000000',
},
}SCSS
$custom: #2a45b1; $custom-light: #7878c9; $custom-dark: #000000;
JSON
{
"hex": "#2a45b1",
"rgb": {
"r": 42,
"g": 69,
"b": 177
},
"hsl": {
"h": 228,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.44059,
"c": 0.1744,
"h": 267.7
},
"luminance": 0.07923
}Semantic roles & 50–950 ramp
primary
#2A45B1
secondary
#C6B570
accent
#C443E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82