#4051BA#4051BA
#4051BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.166 H 271.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #4051BA |
|---|---|
| RGB | rgb(64, 81, 186) |
| HSL | hsl(232, 49%, 49%) |
| HSV | hsv(232, 66%, 73%) |
| CMYK | cmyk(65.6%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(38.76, 27.51, -57.53) |
| CIE-LCH | lch(38.76, 63.77, 295.55°) |
| OKLab | oklab(48.27% 0.0051 -0.1655) |
| OKLCH | oklch(48.27% 0.166 271.8) |
| XYZ | xyz(13.9167, 10.5188, 47.7418) |
| Luminance | 0.1052 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.82
Blue Blue
#2242C7
ΔE00 5.00
Warm Blue
#4B57DB
ΔE00 5.17
Ocean Blue
#4F42B5
ΔE00 5.75
Iris
#6258C4
ΔE00 5.88
Cobalt
#0047AB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4051BA #BAA940
analogous
#408EBA #4051BA #6C40BA
triadic
#4051BA #BA4051 #51BA40
tetradic
#4051BA #BA408E #BAA940 #40BA6C
square
#4051BA #BA408E #BAA940 #40BA6C
split-complementary
#4051BA #BA6C40 #8EBA40
monochromatic
#21295F #303D8C #4051BA #6B79CC #99A2DC
Accessibility & contrast
On white
6.77
#4051BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#4051BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4051BA
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4051BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4051BA | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #4051ba; /* rgb */ color: rgb(64, 81, 186); /* oklch */ color: oklch(48.3% 0.166 271.8);
Tailwind
colors: {
custom: {
50: '#8281cf',
500: '#4051ba',
950: '#000000',
},
}SCSS
$custom: #4051ba; $custom-light: #8281cf; $custom-dark: #000000;
JSON
{
"hex": "#4051ba",
"rgb": {
"r": 64,
"g": 81,
"b": 186
},
"hsl": {
"h": 231.639,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.48268,
"c": 0.16555,
"h": 271.8
},
"luminance": 0.1052
}Semantic roles & 50–950 ramp
primary
#4051BA
secondary
#C8C08E
accent
#C54FD8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82