#4052CF#4052CF

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

Color values

HEX#4052CF
RGBrgb(64, 82, 207)
HSLhsl(232, 60%, 53%)
HSVhsv(232, 69%, 81%)
CMYKcmyk(69.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(40.62, 34.26, -66.71)
CIE-LCHlch(40.62, 75.00, 297.18°)
OKLaboklab(50.16% 0.0045 -0.1924)
OKLCHoklch(50.16% 0.192 271.3)
XYZxyz(16.3903, 11.6280, 60.4000)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052CF #CFBD40
analogous
#4099CF #4052CF #7640CF
triadic
#4052CF #CF4052 #52CF40
tetradic
#4052CF #CF4099 #CFBD40 #40CF76
square
#4052CF #CF4099 #CFBD40 #40CF76
split-complementary
#4052CF #CF7640 #99CF40
monochromatic
#1E2977 #2A3AA8 #4052CF #717EDB #A2ABE8

Accessibility & contrast

On white

6.31
#4052CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4052CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052CF
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052CF#FFFFFF#000000##FFFFFF
##4052CF1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4052cf;
/* rgb */ color: rgb(64, 82, 207);
/* oklch */ color: oklch(50.2% 0.192 271.3);
Tailwind
colors: {
  custom: {
    50: '#8682df',
    500: '#4052cf',
    950: '#000000',
  },
}
SCSS
$custom: #4052cf;
$custom-light: #8682df;
$custom-dark: #000000;
JSON
{
  "hex": "#4052cf",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 232.448,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50157,
    "c": 0.19249,
    "h": 271.3
  },
  "luminance": 0.1163
}

Semantic roles & 50–950 ramp

primary
#4052CF
secondary
#D4CC97
accent
#CF45E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4052CF

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

Preview Lab → · Contrast checker → · Palette generator →

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