#2A54B9#2A54B9
#2A54B9 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.167 H 264.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54B9 |
|---|---|
| RGB | rgb(42, 84, 185) |
| HSL | hsl(222, 63%, 45%) |
| HSV | hsv(222, 77%, 73%) |
| CMYK | cmyk(77.3%, 54.6%, 0%, 27.5%) |
| CIE-LAB | lab(38.44, 22.18, -57.52) |
| CIE-LCH | lch(38.44, 61.64, 291.09°) |
| OKLab | oklab(47.72% -0.0173 -0.1658) |
| OKLCH | oklch(47.72% 0.167 264) |
| XYZ | xyz(12.8790, 10.3342, 47.2055) |
| Luminance | 0.1034 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.72
Cobalt
#0047AB
ΔE00 4.68
Denim
#1560BD
ΔE00 5.14
Denim Blue
#3B5B92
ΔE00 5.59
Dusk Blue
#26538D
ΔE00 6.04
Blue Blue
#2242C7
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54B9 #B98F2A
analogous
#2A9CB9 #2A54B9 #482AB9
triadic
#2A54B9 #B92A54 #54B92A
tetradic
#2A54B9 #B92A9C #B98F2A #2AB948
square
#2A54B9 #B92A9C #B98F2A #2AB948
split-complementary
#2A54B9 #B9482A #9CB92A
monochromatic
#132755 #1F3D87 #2A54B9 #4A73D6 #7C9AE1
Accessibility & contrast
On white
6.85
#2A54B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#2A54B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54B9
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54B9 | 1.00 | 6.85 | 3.07 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a54b9; /* rgb */ color: rgb(42, 84, 185); /* oklch */ color: oklch(47.7% 0.167 264.0);
Tailwind
colors: {
custom: {
50: '#7983cf',
500: '#2a54b9',
950: '#000000',
},
}SCSS
$custom: #2a54b9; $custom-light: #7983cf; $custom-dark: #000000;
JSON
{
"hex": "#2a54b9",
"rgb": {
"r": 42,
"g": 84,
"b": 185
},
"hsl": {
"h": 222.378,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.47718,
"c": 0.16673,
"h": 264
},
"luminance": 0.10336
}Semantic roles & 50–950 ramp
primary
#2A54B9
secondary
#CAB175
accent
#B642E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82