#2A5BAB#2A5BAB
#2A5BAB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.139 H 259.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5BAB |
|---|---|
| RGB | rgb(42, 91, 171) |
| HSL | hsl(217, 61%, 42%) |
| HSV | hsv(217, 75%, 67%) |
| CMYK | cmyk(75.4%, 46.8%, 0%, 32.9%) |
| CIE-LAB | lab(39.43, 12.20, -47.65) |
| CIE-LCH | lch(39.43, 49.19, 284.36°) |
| OKLab | oklab(48.17% -0.0247 -0.1367) |
| OKLCH | oklch(48.17% 0.139 259.8) |
| XYZ | xyz(12.0440, 10.9133, 39.9919) |
| Luminance | 0.1091 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.89
Denim Blue
#3B5B92
ΔE00 3.48
Sapphire
#0F52BA
ΔE00 3.55
Light Navy Blue
#2E5A88
ΔE00 4.35
Dusk Blue
#26538D
ΔE00 4.40
Denim (survey)
#3B638C
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5BAB #AB7A2A
analogous
#2A9CAB #2A5BAB #3A2AAB
triadic
#2A5BAB #AB2A5B #5BAB2A
tetradic
#2A5BAB #AB2A9C #AB7A2A #2AAB3A
square
#2A5BAB #AB2A9C #AB7A2A #2AAB3A
split-complementary
#2A5BAB #AB3A2A #9CAB2A
monochromatic
#122749 #1E417A #2A5BAB #4278D1 #739BDD
Accessibility & contrast
On white
6.60
#2A5BAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#2A5BAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5BAB
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5BAB | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3163AE
Deuteranopia (green-blind)
#1157A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2a5bab; /* rgb */ color: rgb(42, 91, 171); /* oklch */ color: oklch(48.2% 0.139 259.8);
Tailwind
colors: {
custom: {
50: '#7688c4',
500: '#2a5bab',
950: '#000000',
},
}SCSS
$custom: #2a5bab; $custom-light: #7688c4; $custom-dark: #000000;
JSON
{
"hex": "#2a5bab",
"rgb": {
"r": 42,
"g": 91,
"b": 171
},
"hsl": {
"h": 217.209,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.48171,
"c": 0.13889,
"h": 259.8
},
"luminance": 0.10915
}Semantic roles & 50–950 ramp
primary
#2A5BAB
secondary
#C4A36D
accent
#A744E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82