#4050C4#4050C4

#4050C4 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.9% C 0.180 H 272.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#4050C4
RGBrgb(64, 80, 196)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 67%, 77%)
CMYKcmyk(67.3%, 59.2%, 0%, 23.1%)
CIE-LABlab(39.26, 31.67, -62.55)
CIE-LCHlch(39.26, 70.11, 296.85°)
OKLaboklab(48.88% 0.0061 -0.1802)
OKLCHoklch(48.88% 0.18 272)
XYZxyz(14.9435, 10.8114, 53.5131)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C4 #C4B440
analogous
#4092C4 #4050C4 #7240C4
triadic
#4050C4 #C44050 #50C440
tetradic
#4050C4 #C44092 #C4B440 #40C472
square
#4050C4 #C44092 #C4B440 #40C472
split-complementary
#4050C4 #C47240 #92C440
monochromatic
#202969 #2F3C98 #4050C4 #6F7BD2 #9EA6E1

Accessibility & contrast

On white

6.64
#4050C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4050C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C4
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C4#FFFFFF#000000##FFFFFF
##4050C41.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050c4;
/* rgb */ color: rgb(64, 80, 196);
/* oklch */ color: oklch(48.9% 0.180 272.0);
Tailwind
colors: {
  custom: {
    50: '#8481d7',
    500: '#4050c4',
    950: '#000000',
  },
}
SCSS
$custom: #4050c4;
$custom-light: #8481d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c4",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 196
  },
  "hsl": {
    "h": 232.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48881,
    "c": 0.18035,
    "h": 272
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#4050C4
secondary
#CDC693
accent
#CB4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4050C4

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

Preview Lab → · Contrast checker → · Palette generator →

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