#4052C4#4052C4

#4052C4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.178 H 271.4°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#4052C4
RGBrgb(64, 82, 196)
HSLhsl(232, 53%, 51%)
HSVhsv(232, 67%, 77%)
CMYKcmyk(67.3%, 58.2%, 0%, 23.1%)
CIE-LABlab(39.76, 30.40, -61.74)
CIE-LCHlch(39.76, 68.82, 296.21°)
OKLaboklab(49.25% 0.0045 -0.1778)
OKLCHoklch(49.25% 0.178 271.4)
XYZxyz(15.0921, 11.1087, 53.5627)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052C4 #C4B240
analogous
#4094C4 #4052C4 #7040C4
triadic
#4052C4 #C44052 #52C440
tetradic
#4052C4 #C44094 #C4B240 #40C470
square
#4052C4 #C44094 #C4B240 #40C470
split-complementary
#4052C4 #C47040 #94C440
monochromatic
#202A69 #2F3D98 #4052C4 #6F7CD2 #9EA7E1

Accessibility & contrast

On white

6.52
#4052C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4052C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052C4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052C4#FFFFFF#000000##FFFFFF
##4052C41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4052c4;
/* rgb */ color: rgb(64, 82, 196);
/* oklch */ color: oklch(49.3% 0.178 271.4);
Tailwind
colors: {
  custom: {
    50: '#8482d7',
    500: '#4052c4',
    950: '#000000',
  },
}
SCSS
$custom: #4052c4;
$custom-light: #8482d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4052c4",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 231.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49254,
    "c": 0.17789,
    "h": 271.4
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#4052C4
secondary
#CDC593
accent
#C84CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4052C4

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

Preview Lab → · Contrast checker → · Palette generator →

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