#4050DE#4050DE

#4050DE is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.1% C 0.214 H 271.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4050DE
RGBrgb(64, 80, 222)
HSLhsl(234, 71%, 56%)
HSVhsv(234, 71%, 87%)
CMYKcmyk(71.2%, 64%, 0%, 12.9%)
CIE-LABlab(41.37, 40.70, -74.08)
CIE-LCHlch(41.37, 84.52, 298.78°)
OKLaboklab(51.09% 0.0053 -0.2141)
OKLCHoklch(51.09% 0.214 271.4)
XYZxyz(18.1634, 12.0994, 70.4713)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050DE #DECE40
analogous
#409FDE #4050DE #7F40DE
triadic
#4050DE #DE4050 #50DE40
tetradic
#4050DE #DE409F #DECE40 #40DE7F
square
#4050DE #DE409F #DECE40 #40DE7F
split-complementary
#4050DE #DE7F40 #9FDE40
monochromatic
#18248B #2131C0 #4050DE #7480E7 #A8B0F0

Accessibility & contrast

On white

6.14
#4050DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4050DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050DE
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050DE#FFFFFF#000000##FFFFFF
##4050DE1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E3
Deuteranopia (green-blind)
#005ADB
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4050de;
/* rgb */ color: rgb(64, 80, 222);
/* oklch */ color: oklch(51.1% 0.214 271.4);
Tailwind
colors: {
  custom: {
    50: '#8a81e9',
    500: '#4050de',
    950: '#000000',
  },
}
SCSS
$custom: #4050de;
$custom-light: #8a81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4050de",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 222
  },
  "hsl": {
    "h": 233.924,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51094,
    "c": 0.21412,
    "h": 271.4
  },
  "luminance": 0.12101
}

Semantic roles & 50–950 ramp

primary
#4050DE
secondary
#DED79C
accent
#DB3AED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4050DE

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4050DE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva