#2A5FC3#2A5FC3
#2A5FC3 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.167 H 261.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5FC3 |
|---|---|
| RGB | rgb(42, 95, 195) |
| HSL | hsl(219, 65%, 46%) |
| HSV | hsv(219, 78%, 76%) |
| CMYK | cmyk(78.5%, 51.3%, 0%, 23.5%) |
| CIE-LAB | lab(42.18, 18.80, -57.29) |
| CIE-LCH | lch(42.18, 60.29, 288.17°) |
| OKLab | oklab(50.79% -0.0244 -0.165) |
| OKLCH | oklch(50.79% 0.167 261.6) |
| XYZ | xyz(14.8938, 12.6150, 53.2692) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.35
Sapphire
#0F52BA
ΔE00 4.43
French Blue
#436BAD
ΔE00 4.78
Azul
#1D5DEC
ΔE00 5.18
Mid Blue
#276AB3
ΔE00 5.23
Royal Blue
#4169E1
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5FC3 #C38E2A
analogous
#2AACC3 #2A5FC3 #422AC3
triadic
#2A5FC3 #C32A5F #5FC32A
tetradic
#2A5FC3 #C32AAC #C38E2A #2AC342
square
#2A5FC3 #C32AAC #C38E2A #2AC342
split-complementary
#2A5FC3 #C3422A #ACC32A
monochromatic
#142E5E #1F4691 #2A5FC3 #5180D9 #83A5E4
Accessibility & contrast
On white
5.96
#2A5FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#2A5FC3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5FC3
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5FC3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5FC3 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D6BC7
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #2a5fc3; /* rgb */ color: rgb(42, 95, 195); /* oklch */ color: oklch(50.8% 0.167 261.6);
Tailwind
colors: {
custom: {
50: '#7b8bd6',
500: '#2a5fc3',
950: '#000000',
},
}SCSS
$custom: #2a5fc3; $custom-light: #7b8bd6; $custom-dark: #000000;
JSON
{
"hex": "#2a5fc3",
"rgb": {
"r": 42,
"g": 95,
"b": 195
},
"hsl": {
"h": 219.216,
"s": 64.557,
"l": 46.471
},
"oklch": {
"l": 0.50788,
"c": 0.16675,
"h": 261.6
},
"luminance": 0.12617
}Semantic roles & 50–950 ramp
primary
#2A5FC3
secondary
#CDB17B
accent
#AE40E8
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83