#4050C1#4050C1

#4050C1 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.176 H 272.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#4050C1
RGBrgb(64, 80, 193)
HSLhsl(233, 51%, 50%)
HSVhsv(233, 67%, 76%)
CMYKcmyk(66.8%, 58.5%, 0%, 24.3%)
CIE-LABlab(39.03, 30.61, -61.18)
CIE-LCHlch(39.03, 68.42, 296.58°)
OKLaboklab(48.64% 0.0061 -0.1762)
OKLCHoklch(48.64% 0.176 272)
XYZxyz(14.6054, 10.6762, 51.7328)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C1 #C1B140
analogous
#4090C1 #4050C1 #7040C1
triadic
#4050C1 #C14050 #50C140
tetradic
#4050C1 #C14090 #C1B140 #40C170
square
#4050C1 #C14090 #C1B140 #40C170
split-complementary
#4050C1 #C17040 #90C140
monochromatic
#212966 #303C94 #4050C1 #6E7AD0 #9CA5DF

Accessibility & contrast

On white

6.70
#4050C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4050C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C1
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C1#FFFFFF#000000##FFFFFF
##4050C11.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050c1;
/* rgb */ color: rgb(64, 80, 193);
/* oklch */ color: oklch(48.6% 0.176 272.0);
Tailwind
colors: {
  custom: {
    50: '#8481d5',
    500: '#4050c1',
    950: '#000000',
  },
}
SCSS
$custom: #4050c1;
$custom-light: #8481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c1",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 193
  },
  "hsl": {
    "h": 232.558,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48637,
    "c": 0.17633,
    "h": 272
  },
  "luminance": 0.10678
}

Semantic roles & 50–950 ramp

primary
#4050C1
secondary
#CBC492
accent
#C94DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4050C1

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

Preview Lab → · Contrast checker → · Palette generator →

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