#4052CE#4052CE

#4052CE is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.191 H 271.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#4052CE
RGBrgb(64, 82, 206)
HSLhsl(232, 59%, 53%)
HSVhsv(232, 69%, 81%)
CMYKcmyk(68.9%, 60.2%, 0%, 19.2%)
CIE-LABlab(40.54, 33.91, -66.27)
CIE-LCHlch(40.54, 74.44, 297.10°)
OKLaboklab(50.07% 0.0045 -0.1911)
OKLCHoklch(50.07% 0.191 271.3)
XYZxyz(16.2685, 11.5792, 59.7582)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052CE #CEBC40
analogous
#4099CE #4052CE #7540CE
triadic
#4052CE #CE4052 #52CE40
tetradic
#4052CE #CE4099 #CEBC40 #40CE75
square
#4052CE #CE4099 #CEBC40 #40CE75
split-complementary
#4052CE #CE7540 #99CE40
monochromatic
#1E2975 #2B3AA6 #4052CE #717EDA #A1AAE7

Accessibility & contrast

On white

6.33
#4052CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4052CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052CE
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052CE#FFFFFF#000000##FFFFFF
##4052CE1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4052ce;
/* rgb */ color: rgb(64, 82, 206);
/* oklch */ color: oklch(50.1% 0.191 271.3);
Tailwind
colors: {
  custom: {
    50: '#8682de',
    500: '#4052ce',
    950: '#000000',
  },
}
SCSS
$custom: #4052ce;
$custom-light: #8682de;
$custom-dark: #000000;
JSON
{
  "hex": "#4052ce",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 232.394,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50074,
    "c": 0.19118,
    "h": 271.3
  },
  "luminance": 0.11581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4052CE

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

Preview Lab → · Contrast checker → · Palette generator →

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