#2A54B5#2A54B5
#2A54B5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.161 H 263.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54B5 |
|---|---|
| RGB | rgb(42, 84, 181) |
| HSL | hsl(222, 62%, 44%) |
| HSV | hsv(222, 77%, 71%) |
| CMYK | cmyk(76.8%, 53.6%, 0%, 29%) |
| CIE-LAB | lab(38.14, 20.65, -55.64) |
| CIE-LCH | lch(38.14, 59.35, 290.36°) |
| OKLab | oklab(47.4% -0.0176 -0.1603) |
| OKLCH | oklch(47.4% 0.161 263.7) |
| XYZ | xyz(12.4627, 10.1677, 45.0128) |
| Luminance | 0.1017 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.63
Cobalt
#0047AB
ΔE00 4.47
Denim
#1560BD
ΔE00 5.06
Denim Blue
#3B5B92
ΔE00 5.16
Dusk Blue
#26538D
ΔE00 5.52
Cobalt (survey)
#1E488F
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54B5 #B58B2A
analogous
#2A99B5 #2A54B5 #462AB5
triadic
#2A54B5 #B52A54 #54B52A
tetradic
#2A54B5 #B52A99 #B58B2A #2AB546
square
#2A54B5 #B52A99 #B58B2A #2AB546
split-complementary
#2A54B5 #B5462A #99B52A
monochromatic
#132652 #1E3D83 #2A54B5 #4872D4 #7998E0
Accessibility & contrast
On white
6.92
#2A54B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#2A54B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54B5
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54B5 | 1.00 | 6.92 | 3.03 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0760B8
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a54b5; /* rgb */ color: rgb(42, 84, 181); /* oklch */ color: oklch(47.4% 0.161 263.7);
Tailwind
colors: {
custom: {
50: '#7883cc',
500: '#2a54b5',
950: '#000000',
},
}SCSS
$custom: #2a54b5; $custom-light: #7883cc; $custom-dark: #000000;
JSON
{
"hex": "#2a54b5",
"rgb": {
"r": 42,
"g": 84,
"b": 181
},
"hsl": {
"h": 221.871,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.47403,
"c": 0.16128,
"h": 263.7
},
"luminance": 0.10169
}Semantic roles & 50–950 ramp
primary
#2A54B5
secondary
#C8AE73
accent
#B442E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A13
muted
#7C7C82