#4050CE#4050CE

#4050CE is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.7% C 0.194 H 271.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4050CE
RGBrgb(64, 80, 206)
HSLhsl(233, 59%, 53%)
HSVhsv(233, 69%, 81%)
CMYKcmyk(68.9%, 61.2%, 0%, 19.2%)
CIE-LABlab(40.05, 35.16, -67.06)
CIE-LCHlch(40.05, 75.72, 297.67°)
OKLaboklab(49.71% 0.006 -0.1935)
OKLCHoklch(49.71% 0.194 271.8)
XYZxyz(16.1198, 11.2820, 59.7087)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050CE #CEBE40
analogous
#4097CE #4050CE #7740CE
triadic
#4050CE #CE4050 #50CE40
tetradic
#4050CE #CE4097 #CEBE40 #40CE77
square
#4050CE #CE4097 #CEBE40 #40CE77
split-complementary
#4050CE #CE7740 #97CE40
monochromatic
#1E2875 #2B39A6 #4050CE #717DDA #A1A9E7

Accessibility & contrast

On white

6.45
#4050CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4050CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050CE
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050CE#FFFFFF#000000##FFFFFF
##4050CE1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4050ce;
/* rgb */ color: rgb(64, 80, 206);
/* oklch */ color: oklch(49.7% 0.194 271.8);
Tailwind
colors: {
  custom: {
    50: '#8681de',
    500: '#4050ce',
    950: '#000000',
  },
}
SCSS
$custom: #4050ce;
$custom-light: #8681de;
$custom-dark: #000000;
JSON
{
  "hex": "#4050ce",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 206
  },
  "hsl": {
    "h": 233.239,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49713,
    "c": 0.19357,
    "h": 271.8
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

primary
#4050CE
secondary
#D4CD96
accent
#D145E2
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4050CE

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

Preview Lab → · Contrast checker → · Palette generator →

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