#4050CB#4050CB

#4050CB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.5% C 0.190 H 271.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4050CB
RGBrgb(64, 80, 203)
HSLhsl(233, 57%, 52%)
HSVhsv(233, 68%, 80%)
CMYKcmyk(68.5%, 60.6%, 0%, 20.4%)
CIE-LABlab(39.81, 34.12, -65.72)
CIE-LCHlch(39.81, 74.05, 297.44°)
OKLaboklab(49.46% 0.0061 -0.1895)
OKLCHoklch(49.46% 0.19 271.8)
XYZxyz(15.7589, 11.1376, 57.8076)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050CB #CBBB40
analogous
#4095CB #4050CB #7640CB
triadic
#4050CB #CB4050 #50CB40
tetradic
#4050CB #CB4095 #CBBB40 #40CB76
square
#4050CB #CB4095 #CBBB40 #40CB76
split-complementary
#4050CB #CB7640 #95CB40
monochromatic
#1F2872 #2C3AA2 #4050CB #707CD8 #A0A8E5

Accessibility & contrast

On white

6.51
#4050CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4050CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050CB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050CB#FFFFFF#000000##FFFFFF
##4050CB1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4050cb;
/* rgb */ color: rgb(64, 80, 203);
/* oklch */ color: oklch(49.5% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#8681dc',
    500: '#4050cb',
    950: '#000000',
  },
}
SCSS
$custom: #4050cb;
$custom-light: #8681dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4050cb",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 203
  },
  "hsl": {
    "h": 233.094,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49461,
    "c": 0.18965,
    "h": 271.8
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#4050CB
secondary
#D2CB95
accent
#CF47E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4050CB

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

Preview Lab → · Contrast checker → · Palette generator →

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