#4050D4#4050D4

#4050D4 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.2% C 0.201 H 271.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#4050D4
RGBrgb(64, 80, 212)
HSLhsl(234, 63%, 54%)
HSVhsv(234, 70%, 83%)
CMYKcmyk(69.8%, 62.3%, 0%, 16.9%)
CIE-LABlab(40.54, 37.25, -69.72)
CIE-LCHlch(40.54, 79.05, 298.11°)
OKLaboklab(50.22% 0.0058 -0.2013)
OKLCHoklch(50.22% 0.201 271.6)
XYZxyz(16.8627, 11.5791, 63.6209)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050D4 #D4C440
analogous
#409AD4 #4050D4 #7A40D4
triadic
#4050D4 #D44050 #50D440
tetradic
#4050D4 #D4409A #D4C440 #40D47A
square
#4050D4 #D4409A #D4C440 #40D47A
split-complementary
#4050D4 #D47A40 #9AD440
monochromatic
#1C277D #2736AF #4050D4 #727EDF #A4ACEA

Accessibility & contrast

On white

6.33
#4050D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4050D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050D4
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050D4#FFFFFF#000000##FFFFFF
##4050D41.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4050d4;
/* rgb */ color: rgb(64, 80, 212);
/* oklch */ color: oklch(50.2% 0.201 271.6);
Tailwind
colors: {
  custom: {
    50: '#8881e2',
    500: '#4050d4',
    950: '#000000',
  },
}
SCSS
$custom: #4050d4;
$custom-light: #8881e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4050d4",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 212
  },
  "hsl": {
    "h": 233.514,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50224,
    "c": 0.20137,
    "h": 271.6
  },
  "luminance": 0.11581
}

Semantic roles & 50–950 ramp

primary
#4050D4
secondary
#D7D198
accent
#D442E6
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0A15
muted
#7E7C84

Preview Lab

Preview with #4050D4

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

Preview Lab → · Contrast checker → · Palette generator →

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