#2A54B2#2A54B2
#2A54B2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.157 H 263.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54B2 |
|---|---|
| RGB | rgb(42, 84, 178) |
| HSL | hsl(221, 62%, 43%) |
| HSV | hsv(221, 76%, 70%) |
| CMYK | cmyk(76.4%, 52.8%, 0%, 30.2%) |
| CIE-LAB | lab(37.92, 19.50, -54.23) |
| CIE-LCH | lch(37.92, 57.62, 289.78°) |
| OKLab | oklab(47.17% -0.0179 -0.1561) |
| OKLCH | oklch(47.17% 0.157 263.4) |
| XYZ | xyz(12.1582, 10.0459, 43.4091) |
| Luminance | 0.1005 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.69
Cobalt
#0047AB
ΔE00 4.36
Denim Blue
#3B5B92
ΔE00 4.84
Denim
#1560BD
ΔE00 5.03
Dusk Blue
#26538D
ΔE00 5.13
Cobalt (survey)
#1E488F
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54B2 #B2882A
analogous
#2A98B2 #2A54B2 #442AB2
triadic
#2A54B2 #B22A54 #54B22A
tetradic
#2A54B2 #B22A98 #B2882A #2AB244
square
#2A54B2 #B22A98 #B2882A #2AB244
split-complementary
#2A54B2 #B2442A #98B22A
monochromatic
#13254F #1E3D80 #2A54B2 #4672D3 #7797DF
Accessibility & contrast
On white
6.98
#2A54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#2A54B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54B2
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54B2 | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1160B5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a54b2; /* rgb */ color: rgb(42, 84, 178); /* oklch */ color: oklch(47.2% 0.157 263.4);
Tailwind
colors: {
custom: {
50: '#7883ca',
500: '#2a54b2',
950: '#000000',
},
}SCSS
$custom: #2a54b2; $custom-light: #7883ca; $custom-dark: #000000;
JSON
{
"hex": "#2a54b2",
"rgb": {
"r": 42,
"g": 84,
"b": 178
},
"hsl": {
"h": 221.471,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.47169,
"c": 0.15718,
"h": 263.4
},
"luminance": 0.10047
}Semantic roles & 50–950 ramp
primary
#2A54B2
secondary
#C7AC71
accent
#B343E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82