#4062C5#4062C5
#4062C5 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.5% C 0.159 H 266.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #4062C5 |
|---|---|
| RGB | rgb(64, 98, 197) |
| HSL | hsl(225, 53%, 51%) |
| HSV | hsv(225, 68%, 77%) |
| CMYK | cmyk(67.5%, 50.3%, 0%, 22.7%) |
| CIE-LAB | lab(44.02, 20.52, -55.42) |
| CIE-LCH | lch(44.02, 59.09, 290.32°) |
| OKLab | oklab(52.48% -0.0093 -0.159) |
| OKLCH | oklch(52.48% 0.159 266.6) |
| XYZ | xyz(16.5566, 13.8550, 54.6142) |
| Luminance | 0.1386 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 4.30
French Blue
#436BAD
ΔE00 4.57
Denim
#1560BD
ΔE00 4.69
Azul
#1D5DEC
ΔE00 4.80
Cornflower Blue
#5170D7
ΔE00 5.62
Warm Blue
#4B57DB
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4062C5 #C5A340
analogous
#40A4C5 #4062C5 #6040C5
triadic
#4062C5 #C54062 #62C540
tetradic
#4062C5 #C540A4 #C5A340 #40C560
square
#4062C5 #C540A4 #C5A340 #40C560
split-complementary
#4062C5 #C56040 #A4C540
monochromatic
#20336A #2F4A99 #4062C5 #6F89D3 #9EAFE2
Accessibility & contrast
On white
5.57
#4062C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#4062C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4062C5
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4062C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4062C5 | 1.00 | 5.57 | 3.77 | 5.57 |
| #FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#296EC9
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#00798A
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #4062c5; /* rgb */ color: rgb(64, 98, 197); /* oklch */ color: oklch(52.5% 0.159 266.6);
Tailwind
colors: {
custom: {
50: '#848ed7',
500: '#4062c5',
950: '#000000',
},
}SCSS
$custom: #4062c5; $custom-light: #848ed7; $custom-dark: #000000;
JSON
{
"hex": "#4062c5",
"rgb": {
"r": 64,
"g": 98,
"b": 197
},
"hsl": {
"h": 224.662,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.52483,
"c": 0.15929,
"h": 266.6
},
"luminance": 0.13857
}Semantic roles & 50–950 ramp
primary
#4062C5
secondary
#CEBF93
accent
#B84BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83