#2A45B7#2A45B7
#2A45B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.182 H 267.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45B7 |
|---|---|
| RGB | rgb(42, 69, 183) |
| HSL | hsl(229, 63%, 44%) |
| HSV | hsv(229, 77%, 72%) |
| CMYK | cmyk(77%, 62.3%, 0%, 28.2%) |
| CIE-LAB | lab(34.33, 31.28, -63.03) |
| CIE-LCH | lch(34.33, 70.37, 296.40°) |
| OKLab | oklab(44.59% -0.0071 -0.1822) |
| OKLCH | oklch(44.59% 0.182 267.8) |
| XYZ | xyz(11.6272, 8.1661, 45.7540) |
| Luminance | 0.0817 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.30
Cobalt
#0047AB
ΔE00 3.96
Sapphire (survey)
#2138AB
ΔE00 4.04
Blue (survey)
#0343DF
ΔE00 4.92
Ocean Blue
#4F42B5
ΔE00 5.20
Sapphire
#0F52BA
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45B7 #B79C2A
analogous
#2A8CB7 #2A45B7 #562AB7
triadic
#2A45B7 #B72A45 #45B72A
tetradic
#2A45B7 #B72A8C #B79C2A #2AB756
square
#2A45B7 #B72A8C #B79C2A #2AB756
split-complementary
#2A45B7 #B7562A #8CB72A
monochromatic
#131F53 #1F3285 #2A45B7 #4964D5 #7B8EE1
Accessibility & contrast
On white
7.97
#2A45B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#2A45B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45B7
7.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45B7 | 1.00 | 7.97 | 2.63 | 7.97 |
| #FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2a45b7; /* rgb */ color: rgb(42, 69, 183); /* oklch */ color: oklch(44.6% 0.182 267.8);
Tailwind
colors: {
custom: {
50: '#7a78ce',
500: '#2a45b7',
950: '#000000',
},
}SCSS
$custom: #2a45b7; $custom-light: #7a78ce; $custom-dark: #000000;
JSON
{
"hex": "#2a45b7",
"rgb": {
"r": 42,
"g": 69,
"b": 183
},
"hsl": {
"h": 228.511,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.44593,
"c": 0.18239,
"h": 267.8
},
"luminance": 0.08167
}Semantic roles & 50–950 ramp
primary
#2A45B7
secondary
#C9B974
accent
#C642E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82