#4052C5#4052C5

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

Color values

HEX#4052C5
RGBrgb(64, 82, 197)
HSLhsl(232, 53%, 51%)
HSVhsv(232, 68%, 77%)
CMYKcmyk(67.5%, 58.4%, 0%, 22.7%)
CIE-LABlab(39.84, 30.75, -62.20)
CIE-LCHlch(39.84, 69.38, 296.31°)
OKLaboklab(49.34% 0.0045 -0.1792)
OKLCHoklch(49.34% 0.179 271.4)
XYZxyz(15.2063, 11.1544, 54.1641)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052C5 #C5B340
analogous
#4094C5 #4052C5 #7040C5
triadic
#4052C5 #C54052 #52C540
tetradic
#4052C5 #C54094 #C5B340 #40C570
square
#4052C5 #C54094 #C5B340 #40C570
split-complementary
#4052C5 #C57040 #94C540
monochromatic
#202A6A #2F3D99 #4052C5 #6F7DD3 #9EA7E2

Accessibility & contrast

On white

6.50
#4052C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4052C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052C5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052C5#FFFFFF#000000##FFFFFF
##4052C51.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4052c5;
/* rgb */ color: rgb(64, 82, 197);
/* oklch */ color: oklch(49.3% 0.179 271.4);
Tailwind
colors: {
  custom: {
    50: '#8482d7',
    500: '#4052c5',
    950: '#000000',
  },
}
SCSS
$custom: #4052c5;
$custom-light: #8482d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4052c5",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 197
  },
  "hsl": {
    "h": 231.88,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49335,
    "c": 0.17923,
    "h": 271.4
  },
  "luminance": 0.11156
}

Semantic roles & 50–950 ramp

primary
#4052C5
secondary
#CEC693
accent
#C94BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4052C5

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

Preview Lab → · Contrast checker → · Palette generator →

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