#4050C8#4050C8

#4050C8 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.2% C 0.186 H 271.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4050C8
RGBrgb(64, 80, 200)
HSLhsl(233, 55%, 52%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(68%, 60%, 0%, 21.6%)
CIE-LABlab(39.57, 33.07, -64.37)
CIE-LCHlch(39.57, 72.37, 297.19°)
OKLaboklab(49.21% 0.0061 -0.1856)
OKLCHoklch(49.21% 0.186 271.9)
XYZxyz(15.4048, 10.9960, 55.9430)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C8 #C8B840
analogous
#4094C8 #4050C8 #7440C8
triadic
#4050C8 #C84050 #50C840
tetradic
#4050C8 #C84094 #C8B840 #40C874
square
#4050C8 #C84094 #C8B840 #40C874
split-complementary
#4050C8 #C87440 #94C840
monochromatic
#20296E #2D3B9D #4050C8 #707CD6 #9FA7E3

Accessibility & contrast

On white

6.56
#4050C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4050C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C8
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C8#FFFFFF#000000##FFFFFF
##4050C81.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4050c8;
/* rgb */ color: rgb(64, 80, 200);
/* oklch */ color: oklch(49.2% 0.186 271.9);
Tailwind
colors: {
  custom: {
    50: '#8581da',
    500: '#4050c8',
    950: '#000000',
  },
}
SCSS
$custom: #4050c8;
$custom-light: #8581da;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c8",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 232.941,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49211,
    "c": 0.18568,
    "h": 271.9
  },
  "luminance": 0.10997
}

Semantic roles & 50–950 ramp

primary
#4050C8
secondary
#D0C994
accent
#CD49DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4050C8

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

Preview Lab → · Contrast checker → · Palette generator →

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