#4054CB#4054CB
#4054CB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.185 H 270.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #4054CB |
|---|---|
| RGB | rgb(64, 84, 203) |
| HSL | hsl(231, 57%, 52%) |
| HSV | hsv(231, 68%, 80%) |
| CMYK | cmyk(68.5%, 58.6%, 0%, 20.4%) |
| CIE-LAB | lab(40.80, 31.59, -64.11) |
| CIE-LCH | lch(40.80, 71.47, 296.23°) |
| OKLab | oklab(50.2% 0.0029 -0.1848) |
| OKLCH | oklch(50.2% 0.185 270.9) |
| XYZ | xyz(16.0605, 11.7409, 57.9082) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.88
Iris
#6258C4
ΔE00 5.29
Azul
#1D5DEC
ΔE00 5.34
Sapphire
#0F52BA
ΔE00 5.51
Blue (survey)
#0343DF
ΔE00 5.58
Blue Blue
#2242C7
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4054CB #CBB740
analogous
#409ACB #4054CB #7240CB
triadic
#4054CB #CB4054 #54CB40
tetradic
#4054CB #CB409A #CBB740 #40CB72
square
#4054CB #CB409A #CBB740 #40CB72
split-complementary
#4054CB #CB7240 #9ACB40
monochromatic
#1F2B72 #2C3DA2 #4054CB #707FD8 #A0AAE5
Accessibility & contrast
On white
6.27
#4054CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#4054CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4054CB
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4054CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4054CB | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #4054cb; /* rgb */ color: rgb(64, 84, 203); /* oklch */ color: oklch(50.2% 0.185 270.9);
Tailwind
colors: {
custom: {
50: '#8684dc',
500: '#4054cb',
950: '#000000',
},
}SCSS
$custom: #4054cb; $custom-light: #8684dc; $custom-dark: #000000;
JSON
{
"hex": "#4054cb",
"rgb": {
"r": 64,
"g": 84,
"b": 203
},
"hsl": {
"h": 231.367,
"s": 57.202,
"l": 52.353
},
"oklch": {
"l": 0.50195,
"c": 0.18479,
"h": 270.9
},
"luminance": 0.11742
}Semantic roles & 50–950 ramp
primary
#4054CB
secondary
#D2C995
accent
#CA47E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83