#2A54B7#2A54B7
#2A54B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.164 H 263.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54B7 |
|---|---|
| RGB | rgb(42, 84, 183) |
| HSL | hsl(222, 63%, 44%) |
| HSV | hsv(222, 77%, 72%) |
| CMYK | cmyk(77%, 54.1%, 0%, 28.2%) |
| CIE-LAB | lab(38.29, 21.41, -56.58) |
| CIE-LCH | lch(38.29, 60.50, 290.73°) |
| OKLab | oklab(47.56% -0.0175 -0.1631) |
| OKLCH | oklch(47.56% 0.164 263.9) |
| XYZ | xyz(12.6694, 10.2503, 46.1014) |
| Luminance | 0.1025 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.65
Cobalt
#0047AB
ΔE00 4.57
Denim
#1560BD
ΔE00 5.09
Denim Blue
#3B5B92
ΔE00 5.37
Dusk Blue
#26538D
ΔE00 5.78
Blue Blue
#2242C7
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54B7 #B78D2A
analogous
#2A9BB7 #2A54B7 #472AB7
triadic
#2A54B7 #B72A54 #54B72A
tetradic
#2A54B7 #B72A9B #B78D2A #2AB747
square
#2A54B7 #B72A9B #B78D2A #2AB747
split-complementary
#2A54B7 #B7472A #9BB72A
monochromatic
#132653 #1F3D85 #2A54B7 #4973D5 #7B99E1
Accessibility & contrast
On white
6.88
#2A54B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#2A54B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54B7
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54B7 | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a54b7; /* rgb */ color: rgb(42, 84, 183); /* oklch */ color: oklch(47.6% 0.164 263.9);
Tailwind
colors: {
custom: {
50: '#7983cd',
500: '#2a54b7',
950: '#000000',
},
}SCSS
$custom: #2a54b7; $custom-light: #7983cd; $custom-dark: #000000;
JSON
{
"hex": "#2a54b7",
"rgb": {
"r": 42,
"g": 84,
"b": 183
},
"hsl": {
"h": 222.128,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.4756,
"c": 0.16401,
"h": 263.9
},
"luminance": 0.10252
}Semantic roles & 50–950 ramp
primary
#2A54B7
secondary
#C9B074
accent
#B542E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A14
muted
#7C7C82