#4050C7#4050C7

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

Color values

HEX#4050C7
RGBrgb(64, 80, 199)
HSLhsl(233, 55%, 52%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(67.8%, 59.8%, 0%, 22%)
CIE-LABlab(39.50, 32.72, -63.92)
CIE-LCHlch(39.50, 71.80, 297.11°)
OKLaboklab(49.13% 0.0061 -0.1842)
OKLCHoklch(49.13% 0.184 271.9)
XYZxyz(15.2883, 10.9494, 55.3295)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C7 #C7B740
analogous
#4094C7 #4050C7 #7440C7
triadic
#4050C7 #C74050 #50C740
tetradic
#4050C7 #C74094 #C7B740 #40C774
square
#4050C7 #C74094 #C7B740 #40C774
split-complementary
#4050C7 #C77440 #94C740
monochromatic
#20296D #2E3B9C #4050C7 #6F7BD5 #9FA7E3

Accessibility & contrast

On white

6.58
#4050C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4050C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C7
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C7#FFFFFF#000000##FFFFFF
##4050C71.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4050c7;
/* rgb */ color: rgb(64, 80, 199);
/* oklch */ color: oklch(49.1% 0.184 271.9);
Tailwind
colors: {
  custom: {
    50: '#8581d9',
    500: '#4050c7',
    950: '#000000',
  },
}
SCSS
$custom: #4050c7;
$custom-light: #8581d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c7",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 199
  },
  "hsl": {
    "h": 232.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49128,
    "c": 0.18435,
    "h": 271.9
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#4050C7
secondary
#CFC894
accent
#CC4ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4050C7

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

Preview Lab → · Contrast checker → · Palette generator →

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