#4050C5#4050C5

#4050C5 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.182 H 271.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#4050C5
RGBrgb(64, 80, 197)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 68%, 77%)
CMYKcmyk(67.5%, 59.4%, 0%, 22.7%)
CIE-LABlab(39.34, 32.02, -63.01)
CIE-LCHlch(39.34, 70.68, 296.94°)
OKLaboklab(48.96% 0.0061 -0.1816)
OKLCHoklch(48.96% 0.182 271.9)
XYZxyz(15.0577, 10.8571, 54.1146)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C5 #C5B540
analogous
#4092C5 #4050C5 #7240C5
triadic
#4050C5 #C54050 #50C540
tetradic
#4050C5 #C54092 #C5B540 #40C572
square
#4050C5 #C54092 #C5B540 #40C572
split-complementary
#4050C5 #C57240 #92C540
monochromatic
#20296A #2F3B99 #4050C5 #6F7BD3 #9EA6E2

Accessibility & contrast

On white

6.62
#4050C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4050C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C5
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C5#FFFFFF#000000##FFFFFF
##4050C51.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0057C3
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4050c5;
/* rgb */ color: rgb(64, 80, 197);
/* oklch */ color: oklch(49.0% 0.182 271.9);
Tailwind
colors: {
  custom: {
    50: '#8581d7',
    500: '#4050c5',
    950: '#000000',
  },
}
SCSS
$custom: #4050c5;
$custom-light: #8581d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c5",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 197
  },
  "hsl": {
    "h": 232.782,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.18169,
    "h": 271.9
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#4050C5
secondary
#CEC793
accent
#CB4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4050C5

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

Preview Lab → · Contrast checker → · Palette generator →

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