#2A54BC#2A54BC
#2A54BC is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.0% C 0.171 H 264.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54BC |
|---|---|
| RGB | rgb(42, 84, 188) |
| HSL | hsl(223, 63%, 45%) |
| HSV | hsv(223, 78%, 74%) |
| CMYK | cmyk(77.7%, 55.3%, 0%, 26.3%) |
| CIE-LAB | lab(38.66, 23.32, -58.91) |
| CIE-LCH | lch(38.66, 63.36, 291.60°) |
| OKLab | oklab(47.96% -0.0171 -0.1699) |
| OKLCH | oklch(47.96% 0.171 264.3) |
| XYZ | xyz(13.1990, 10.4622, 48.8910) |
| Luminance | 0.1046 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.89
Cobalt
#0047AB
ΔE00 4.88
Denim
#1560BD
ΔE00 5.23
Denim Blue
#3B5B92
ΔE00 5.92
Blue Blue
#2242C7
ΔE00 6.05
Warm Blue
#4B57DB
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54BC #BC922A
analogous
#2A9DBC #2A54BC #492ABC
triadic
#2A54BC #BC2A54 #54BC2A
tetradic
#2A54BC #BC2A9D #BC922A #2ABC49
square
#2A54BC #BC2A9D #BC922A #2ABC49
split-complementary
#2A54BC #BC492A #9DBC2A
monochromatic
#142758 #1F3E8A #2A54BC #4C74D7 #7E9BE2
Accessibility & contrast
On white
6.79
#2A54BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#2A54BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54BC
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54BC | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a54bc; /* rgb */ color: rgb(42, 84, 188); /* oklch */ color: oklch(48.0% 0.171 264.3);
Tailwind
colors: {
custom: {
50: '#7a83d1',
500: '#2a54bc',
950: '#000000',
},
}SCSS
$custom: #2a54bc; $custom-light: #7a83d1; $custom-dark: #000000;
JSON
{
"hex": "#2a54bc",
"rgb": {
"r": 42,
"g": 84,
"b": 188
},
"hsl": {
"h": 222.74,
"s": 63.478,
"l": 45.098
},
"oklch": {
"l": 0.47958,
"c": 0.17078,
"h": 264.3
},
"luminance": 0.10464
}Semantic roles & 50–950 ramp
primary
#2A54BC
secondary
#CBB377
accent
#B741E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82