#4050CF#4050CF

#4050CF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.8% C 0.195 H 271.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#4050CF
RGBrgb(64, 80, 207)
HSLhsl(233, 60%, 53%)
HSVhsv(233, 69%, 81%)
CMYKcmyk(69.1%, 61.4%, 0%, 18.8%)
CIE-LABlab(40.13, 35.51, -67.51)
CIE-LCHlch(40.13, 76.28, 297.75°)
OKLaboklab(49.8% 0.006 -0.1948)
OKLCHoklch(49.8% 0.195 271.8)
XYZxyz(16.2417, 11.3307, 60.3505)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050CF #CFBF40
analogous
#4097CF #4050CF #7740CF
triadic
#4050CF #CF4050 #50CF40
tetradic
#4050CF #CF4097 #CFBF40 #40CF77
square
#4050CF #CF4097 #CFBF40 #40CF77
split-complementary
#4050CF #CF7740 #97CF40
monochromatic
#1E2877 #2A38A8 #4050CF #717DDB #A2AAE8

Accessibility & contrast

On white

6.43
#4050CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4050CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050CF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050CF#FFFFFF#000000##FFFFFF
##4050CF1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#0058CD
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4050cf;
/* rgb */ color: rgb(64, 80, 207);
/* oklch */ color: oklch(49.8% 0.195 271.8);
Tailwind
colors: {
  custom: {
    50: '#8781df',
    500: '#4050cf',
    950: '#000000',
  },
}
SCSS
$custom: #4050cf;
$custom-light: #8781df;
$custom-dark: #000000;
JSON
{
  "hex": "#4050cf",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 207
  },
  "hsl": {
    "h": 233.287,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49797,
    "c": 0.19488,
    "h": 271.8
  },
  "luminance": 0.11332
}

Semantic roles & 50–950 ramp

primary
#4050CF
secondary
#D4CD97
accent
#D145E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4050CF

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

Preview Lab → · Contrast checker → · Palette generator →

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