#2A45B6#2A45B6
#2A45B6 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.5% C 0.181 H 267.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2A45B6 |
|---|---|
| RGB | rgb(42, 69, 182) |
| HSL | hsl(228, 63%, 44%) |
| HSV | hsv(228, 77%, 71%) |
| CMYK | cmyk(76.9%, 62.1%, 0%, 28.6%) |
| CIE-LAB | lab(34.24, 30.91, -62.58) |
| CIE-LCH | lch(34.24, 69.80, 296.29°) |
| OKLab | oklab(44.5% -0.0071 -0.1809) |
| OKLCH | oklch(44.5% 0.181 267.7) |
| XYZ | xyz(11.5235, 8.1246, 45.2078) |
| Luminance | 0.0813 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.43
Cobalt
#0047AB
ΔE00 3.87
Sapphire (survey)
#2138AB
ΔE00 4.00
Blue (survey)
#0343DF
ΔE00 5.05
Ocean Blue
#4F42B5
ΔE00 5.25
Sapphire
#0F52BA
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A45B6 #B69B2A
analogous
#2A8BB6 #2A45B6 #552AB6
triadic
#2A45B6 #B62A45 #45B62A
tetradic
#2A45B6 #B62A8B #B69B2A #2AB655
square
#2A45B6 #B62A8B #B69B2A #2AB655
split-complementary
#2A45B6 #B6552A #8BB62A
monochromatic
#131F53 #1F3284 #2A45B6 #4863D5 #7A8EE0
Accessibility & contrast
On white
8.00
#2A45B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#2A45B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A45B6
8.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A45B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A45B6 | 1.00 | 8.00 | 2.63 | 8.00 |
| #FFFFFF | 8.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2a45b6; /* rgb */ color: rgb(42, 69, 182); /* oklch */ color: oklch(44.5% 0.181 267.7);
Tailwind
colors: {
custom: {
50: '#7a78cd',
500: '#2a45b6',
950: '#000000',
},
}SCSS
$custom: #2a45b6; $custom-light: #7a78cd; $custom-dark: #000000;
JSON
{
"hex": "#2a45b6",
"rgb": {
"r": 42,
"g": 69,
"b": 182
},
"hsl": {
"h": 228.429,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.44503,
"c": 0.18107,
"h": 267.7
},
"luminance": 0.08126
}Semantic roles & 50–950 ramp
primary
#2A45B6
secondary
#C8B873
accent
#C642E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82