#4051BF#4051BF
#4051BF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.172 H 271.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #4051BF |
|---|---|
| RGB | rgb(64, 81, 191) |
| HSL | hsl(232, 50%, 50%) |
| HSV | hsv(232, 66%, 75%) |
| CMYK | cmyk(66.5%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(39.13, 29.27, -59.85) |
| CIE-LCH | lch(39.13, 66.63, 296.06°) |
| OKLab | oklab(48.66% 0.0053 -0.1723) |
| OKLCH | oklch(48.66% 0.172 271.8) |
| XYZ | xyz(14.4576, 10.7351, 50.5903) |
| Luminance | 0.1074 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.55
Blue Blue
#2242C7
ΔE00 4.81
Sapphire
#0F52BA
ΔE00 5.01
Iris
#6258C4
ΔE00 5.63
Blue (survey)
#0343DF
ΔE00 5.71
Ocean Blue
#4F42B5
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4051BF #BFAE40
analogous
#4090BF #4051BF #6F40BF
triadic
#4051BF #BF4051 #51BF40
tetradic
#4051BF #BF4090 #BFAE40 #40BF6F
square
#4051BF #BF4090 #BFAE40 #40BF6F
split-complementary
#4051BF #BF6F40 #90BF40
monochromatic
#212A63 #313E91 #4051BF #6E7BCE #9CA5DE
Accessibility & contrast
On white
6.67
#4051BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#4051BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4051BF
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4051BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4051BF | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #4051bf; /* rgb */ color: rgb(64, 81, 191); /* oklch */ color: oklch(48.7% 0.172 271.8);
Tailwind
colors: {
custom: {
50: '#8381d3',
500: '#4051bf',
950: '#000000',
},
}SCSS
$custom: #4051bf; $custom-light: #8381d3; $custom-dark: #000000;
JSON
{
"hex": "#4051bf",
"rgb": {
"r": 64,
"g": 81,
"b": 191
},
"hsl": {
"h": 231.969,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.48664,
"c": 0.17237,
"h": 271.8
},
"luminance": 0.10736
}Semantic roles & 50–950 ramp
primary
#4051BF
secondary
#CAC291
accent
#C74ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83