#2A5FAB#2A5FAB
#2A5FAB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.134 H 257.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5FAB |
|---|---|
| RGB | rgb(42, 95, 171) |
| HSL | hsl(215, 61%, 42%) |
| HSV | hsv(215, 75%, 67%) |
| CMYK | cmyk(75.4%, 44.4%, 0%, 32.9%) |
| CIE-LAB | lab(40.60, 9.60, -45.79) |
| CIE-LCH | lch(40.60, 46.78, 281.84°) |
| OKLab | oklab(49.07% -0.0282 -0.1311) |
| OKLCH | oklch(49.07% 0.134 257.9) |
| XYZ | xyz(12.3951, 11.6155, 40.1089) |
| Luminance | 0.1162 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.06
Denim Blue
#3B5B92
ΔE00 3.92
Denim (survey)
#3B638C
ΔE00 4.11
Mid Blue
#276AB3
ΔE00 4.22
Light Navy Blue
#2E5A88
ΔE00 4.41
French Blue
#436BAD
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5FAB #AB762A
analogous
#2AA0AB #2A5FAB #362AAB
triadic
#2A5FAB #AB2A5F #5FAB2A
tetradic
#2A5FAB #AB2AA0 #AB762A #2AAB36
square
#2A5FAB #AB2AA0 #AB762A #2AAB36
split-complementary
#2A5FAB #AB362A #A0AB2A
monochromatic
#122849 #1E447A #2A5FAB #427CD1 #739EDD
Accessibility & contrast
On white
6.32
#2A5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#2A5FAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5FAB
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5FAB | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #2a5fab; /* rgb */ color: rgb(42, 95, 171); /* oklch */ color: oklch(49.1% 0.134 257.9);
Tailwind
colors: {
custom: {
50: '#768bc4',
500: '#2a5fab',
950: '#000000',
},
}SCSS
$custom: #2a5fab; $custom-light: #768bc4; $custom-dark: #000000;
JSON
{
"hex": "#2a5fab",
"rgb": {
"r": 42,
"g": 95,
"b": 171
},
"hsl": {
"h": 215.349,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.49069,
"c": 0.13411,
"h": 257.9
},
"luminance": 0.11617
}Semantic roles & 50–950 ramp
primary
#2A5FAB
secondary
#C4A06D
accent
#A244E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82