#4052CC#4052CC

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

Color values

HEX#4052CC
RGBrgb(64, 82, 204)
HSLhsl(232, 58%, 53%)
HSVhsv(232, 69%, 80%)
CMYKcmyk(68.6%, 59.8%, 0%, 20%)
CIE-LABlab(40.38, 33.21, -65.37)
CIE-LCHlch(40.38, 73.32, 296.93°)
OKLaboklab(49.91% 0.0045 -0.1885)
OKLCHoklch(49.91% 0.189 271.4)
XYZxyz(16.0270, 11.4827, 58.4868)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052CC #CCBA40
analogous
#4098CC #4052CC #7440CC
triadic
#4052CC #CC4052 #52CC40
tetradic
#4052CC #CC4098 #CCBA40 #40CC74
square
#4052CC #CC4098 #CCBA40 #40CC74
split-complementary
#4052CC #CC7440 #98CC40
monochromatic
#1F2A73 #2C3BA3 #4052CC #707ED9 #A1AAE6

Accessibility & contrast

On white

6.37
#4052CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4052CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052CC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052CC#FFFFFF#000000##FFFFFF
##4052CC1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4052cc;
/* rgb */ color: rgb(64, 82, 204);
/* oklch */ color: oklch(49.9% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#8682dc',
    500: '#4052cc',
    950: '#000000',
  },
}
SCSS
$custom: #4052cc;
$custom-light: #8682dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4052cc",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 232.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49908,
    "c": 0.18854,
    "h": 271.4
  },
  "luminance": 0.11484
}

Semantic roles & 50–950 ramp

primary
#4052CC
secondary
#D2CA95
accent
#CD47E1
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4052CC

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

Preview Lab → · Contrast checker → · Palette generator →

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