#4052C7#4052C7

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

Color values

HEX#4052C7
RGBrgb(64, 82, 199)
HSLhsl(232, 55%, 52%)
HSVhsv(232, 68%, 78%)
CMYKcmyk(67.8%, 58.8%, 0%, 22%)
CIE-LABlab(39.99, 31.45, -63.11)
CIE-LCHlch(39.99, 70.51, 296.49°)
OKLaboklab(49.5% 0.0045 -0.1819)
OKLCHoklch(49.5% 0.182 271.4)
XYZxyz(15.4370, 11.2466, 55.3790)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052C7 #C7B540
analogous
#4096C7 #4052C7 #7240C7
triadic
#4052C7 #C74052 #52C740
tetradic
#4052C7 #C74096 #C7B540 #40C772
square
#4052C7 #C74096 #C7B540 #40C772
split-complementary
#4052C7 #C77240 #96C740
monochromatic
#202A6D #2E3C9C #4052C7 #6F7DD5 #9FA8E3

Accessibility & contrast

On white

6.46
#4052C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#4052C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052C7
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052C7#FFFFFF#000000##FFFFFF
##4052C71.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4052c7;
/* rgb */ color: rgb(64, 82, 199);
/* oklch */ color: oklch(49.5% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#8582d9',
    500: '#4052c7',
    950: '#000000',
  },
}
SCSS
$custom: #4052c7;
$custom-light: #8582d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4052c7",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 199
  },
  "hsl": {
    "h": 232,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49497,
    "c": 0.18191,
    "h": 271.4
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#4052C7
secondary
#CFC794
accent
#CA4ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4052C7

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

Preview Lab → · Contrast checker → · Palette generator →

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