#4050CD#4050CD

#4050CD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.6% C 0.192 H 271.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#4050CD
RGBrgb(64, 80, 205)
HSLhsl(233, 59%, 53%)
HSVhsv(233, 69%, 80%)
CMYKcmyk(68.8%, 61%, 0%, 19.6%)
CIE-LABlab(39.97, 34.81, -66.62)
CIE-LCHlch(39.97, 75.16, 297.59°)
OKLaboklab(49.63% 0.006 -0.1922)
OKLCHoklch(49.63% 0.192 271.8)
XYZxyz(15.9987, 11.2336, 59.0709)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050CD #CDBD40
analogous
#4097CD #4050CD #7640CD
triadic
#4050CD #CD4050 #50CD40
tetradic
#4050CD #CD4097 #CDBD40 #40CD76
square
#4050CD #CD4097 #CDBD40 #40CD76
split-complementary
#4050CD #CD7640 #97CD40
monochromatic
#1E2874 #2B39A5 #4050CD #717CDA #A1A9E6

Accessibility & contrast

On white

6.47
#4050CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#4050CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050CD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050CD#FFFFFF#000000##FFFFFF
##4050CD1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4050cd;
/* rgb */ color: rgb(64, 80, 205);
/* oklch */ color: oklch(49.6% 0.192 271.8);
Tailwind
colors: {
  custom: {
    50: '#8681dd',
    500: '#4050cd',
    950: '#000000',
  },
}
SCSS
$custom: #4050cd;
$custom-light: #8681dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4050cd",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 205
  },
  "hsl": {
    "h": 233.191,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49628,
    "c": 0.19226,
    "h": 271.8
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

primary
#4050CD
secondary
#D3CC96
accent
#D046E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4050CD

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

Preview Lab → · Contrast checker → · Palette generator →

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