#2A5FB7#2A5FB7
#2A5FB7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.151 H 260.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5FB7 |
|---|---|
| RGB | rgb(42, 95, 183) |
| HSL | hsl(217, 63%, 44%) |
| HSV | hsv(217, 77%, 72%) |
| CMYK | cmyk(77%, 48.1%, 0%, 28.2%) |
| CIE-LAB | lab(41.37, 14.20, -51.61) |
| CIE-LCH | lch(41.37, 53.53, 285.38°) |
| OKLab | oklab(49.91% -0.0261 -0.1482) |
| OKLCH | oklch(49.91% 0.151 260) |
| XYZ | xyz(13.5912, 12.0940, 46.4086) |
| Luminance | 0.1210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 1.57
Sapphire
#0F52BA
ΔE00 4.33
French Blue
#436BAD
ΔE00 4.40
Mid Blue
#276AB3
ΔE00 4.54
Denim Blue
#3B5B92
ΔE00 4.87
Denim (survey)
#3B638C
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5FB7 #B7822A
analogous
#2AA6B7 #2A5FB7 #3C2AB7
triadic
#2A5FB7 #B72A5F #5FB72A
tetradic
#2A5FB7 #B72AA6 #B7822A #2AB73C
square
#2A5FB7 #B72AA6 #B7822A #2AB73C
split-complementary
#2A5FB7 #B73C2A #A6B72A
monochromatic
#132B53 #1F4585 #2A5FB7 #497ED5 #7BA1E1
Accessibility & contrast
On white
6.14
#2A5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#2A5FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5FB7
6.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5FB7 | 1.00 | 6.14 | 3.42 | 6.14 |
| #FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E68BA
Deuteranopia (green-blind)
#005CB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #2a5fb7; /* rgb */ color: rgb(42, 95, 183); /* oklch */ color: oklch(49.9% 0.151 260.0);
Tailwind
colors: {
custom: {
50: '#788bcd',
500: '#2a5fb7',
950: '#000000',
},
}SCSS
$custom: #2a5fb7; $custom-light: #788bcd; $custom-dark: #000000;
JSON
{
"hex": "#2a5fb7",
"rgb": {
"r": 42,
"g": 95,
"b": 183
},
"hsl": {
"h": 217.447,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.49907,
"c": 0.15052,
"h": 260
},
"luminance": 0.12096
}Semantic roles & 50–950 ramp
primary
#2A5FB7
secondary
#C9A974
accent
#A842E6
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82