#4052CD#4052CD

#4052CD is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.190 H 271.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#4052CD
RGBrgb(64, 82, 205)
HSLhsl(232, 59%, 53%)
HSVhsv(232, 69%, 80%)
CMYKcmyk(68.8%, 60%, 0%, 19.6%)
CIE-LABlab(40.46, 33.56, -65.82)
CIE-LCHlch(40.46, 73.88, 297.02°)
OKLaboklab(49.99% 0.0045 -0.1898)
OKLCHoklch(49.99% 0.19 271.4)
XYZxyz(16.1474, 11.5308, 59.1205)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052CD #CDBB40
analogous
#4099CD #4052CD #7440CD
triadic
#4052CD #CD4052 #52CD40
tetradic
#4052CD #CD4099 #CDBB40 #40CD74
square
#4052CD #CD4099 #CDBB40 #40CD74
split-complementary
#4052CD #CD7440 #99CD40
monochromatic
#1E2974 #2B3BA5 #4052CD #717EDA #A1AAE6

Accessibility & contrast

On white

6.35
#4052CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4052CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052CD
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052CD#FFFFFF#000000##FFFFFF
##4052CD1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4052cd;
/* rgb */ color: rgb(64, 82, 205);
/* oklch */ color: oklch(50.0% 0.190 271.4);
Tailwind
colors: {
  custom: {
    50: '#8682dd',
    500: '#4052cd',
    950: '#000000',
  },
}
SCSS
$custom: #4052cd;
$custom-light: #8682dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4052cd",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 232.34,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4999,
    "c": 0.18986,
    "h": 271.4
  },
  "luminance": 0.11532
}

Semantic roles & 50–950 ramp

primary
#4052CD
secondary
#D3CB96
accent
#CE46E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4052CD

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

Preview Lab → · Contrast checker → · Palette generator →

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