#4051CE#4051CE

#4051CE is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.192 H 271.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4051CE
RGBrgb(64, 81, 206)
HSLhsl(233, 59%, 53%)
HSVhsv(233, 69%, 81%)
CMYKcmyk(68.9%, 60.7%, 0%, 19.2%)
CIE-LABlab(40.29, 34.54, -66.67)
CIE-LCHlch(40.29, 75.08, 297.39°)
OKLaboklab(49.89% 0.0052 -0.1923)
OKLCHoklch(49.89% 0.192 271.6)
XYZxyz(16.1936, 11.4295, 59.7333)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051CE #CEBD40
analogous
#4098CE #4051CE #7640CE
triadic
#4051CE #CE4051 #51CE40
tetradic
#4051CE #CE4098 #CEBD40 #40CE76
square
#4051CE #CE4098 #CEBD40 #40CE76
split-complementary
#4051CE #CE7640 #98CE40
monochromatic
#1E2975 #2B39A6 #4051CE #717DDA #A1AAE7

Accessibility & contrast

On white

6.39
#4051CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4051CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051CE
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051CE#FFFFFF#000000##FFFFFF
##4051CE1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4051ce;
/* rgb */ color: rgb(64, 81, 206);
/* oklch */ color: oklch(49.9% 0.192 271.6);
Tailwind
colors: {
  custom: {
    50: '#8681de',
    500: '#4051ce',
    950: '#000000',
  },
}
SCSS
$custom: #4051ce;
$custom-light: #8681de;
$custom-dark: #000000;
JSON
{
  "hex": "#4051ce",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 232.817,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49892,
    "c": 0.19238,
    "h": 271.6
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#4051CE
secondary
#D4CC96
accent
#D045E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4051CE

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

Preview Lab → · Contrast checker → · Palette generator →

#4051CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva