#4050C9#4050C9

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

Color values

HEX#4050C9
RGBrgb(64, 80, 201)
HSLhsl(233, 56%, 52%)
HSVhsv(233, 68%, 79%)
CMYKcmyk(68.2%, 60.2%, 0%, 21.2%)
CIE-LABlab(39.65, 33.42, -64.82)
CIE-LCHlch(39.65, 72.93, 297.27°)
OKLaboklab(49.29% 0.0061 -0.1869)
OKLCHoklch(49.29% 0.187 271.9)
XYZxyz(15.5221, 11.0429, 56.5605)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C9 #C9B940
analogous
#4094C9 #4050C9 #7540C9
triadic
#4050C9 #C94050 #50C940
tetradic
#4050C9 #C94094 #C9B940 #40C975
square
#4050C9 #C94094 #C9B940 #40C975
split-complementary
#4050C9 #C97540 #94C940
monochromatic
#1F296F #2D3A9F #4050C9 #707CD6 #9FA7E4

Accessibility & contrast

On white

6.54
#4050C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4050C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C9
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C9#FFFFFF#000000##FFFFFF
##4050C91.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4050c9;
/* rgb */ color: rgb(64, 80, 201);
/* oklch */ color: oklch(49.3% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#8581da',
    500: '#4050c9',
    950: '#000000',
  },
}
SCSS
$custom: #4050c9;
$custom-light: #8581da;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c9",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 201
  },
  "hsl": {
    "h": 232.993,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49294,
    "c": 0.187,
    "h": 271.9
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4050C9

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

Preview Lab → · Contrast checker → · Palette generator →

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