#4050C6#4050C6

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

Color values

HEX#4050C6
RGBrgb(64, 80, 198)
HSLhsl(233, 54%, 51%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(67.7%, 59.6%, 0%, 22.4%)
CIE-LABlab(39.42, 32.37, -63.46)
CIE-LCHlch(39.42, 71.24, 297.02°)
OKLaboklab(49.05% 0.0061 -0.1829)
OKLCHoklch(49.05% 0.183 271.9)
XYZxyz(15.1726, 10.9031, 54.7200)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C6 #C6B640
analogous
#4093C6 #4050C6 #7340C6
triadic
#4050C6 #C64050 #50C640
tetradic
#4050C6 #C64093 #C6B640 #40C673
square
#4050C6 #C64093 #C6B640 #40C673
split-complementary
#4050C6 #C67340 #93C640
monochromatic
#20296C #2E3B9B #4050C6 #6F7BD4 #9EA6E2

Accessibility & contrast

On white

6.60
#4050C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4050C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C6#FFFFFF#000000##FFFFFF
##4050C61.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4050c6;
/* rgb */ color: rgb(64, 80, 198);
/* oklch */ color: oklch(49.0% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#8581d8',
    500: '#4050c6',
    950: '#000000',
  },
}
SCSS
$custom: #4050c6;
$custom-light: #8581d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c6",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 198
  },
  "hsl": {
    "h": 232.836,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49045,
    "c": 0.18302,
    "h": 271.9
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4050C6

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

Preview Lab → · Contrast checker → · Palette generator →

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