#4052D8#4052D8

#4052D8 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 50.9% C 0.204 H 271.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#4052D8
RGBrgb(64, 82, 216)
HSLhsl(233, 66%, 55%)
HSVhsv(233, 70%, 85%)
CMYKcmyk(70.4%, 62%, 0%, 15.3%)
CIE-LABlab(41.34, 37.40, -70.70)
CIE-LCHlch(41.34, 79.98, 297.88°)
OKLaboklab(50.92% 0.0042 -0.2041)
OKLCHoklch(50.92% 0.204 271.2)
XYZxyz(17.5221, 12.0807, 66.3608)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052D8 #D8C640
analogous
#409ED8 #4052D8 #7A40D8
triadic
#4052D8 #D84052 #52D840
tetradic
#4052D8 #D8409E #D8C640 #40D87A
square
#4052D8 #D8409E #D8C640 #40D87A
split-complementary
#4052D8 #D87A40 #9ED840
monochromatic
#1B2783 #2536B6 #4052D8 #7380E2 #A6AEED

Accessibility & contrast

On white

6.15
#4052D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4052D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052D8
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052D8#FFFFFF#000000##FFFFFF
##4052D81.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#005BD5
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4052d8;
/* rgb */ color: rgb(64, 82, 216);
/* oklch */ color: oklch(50.9% 0.204 271.2);
Tailwind
colors: {
  custom: {
    50: '#8882e5',
    500: '#4052d8',
    950: '#000000',
  },
}
SCSS
$custom: #4052d8;
$custom-light: #8882e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4052d8",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 232.895,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.20418,
    "h": 271.2
  },
  "luminance": 0.12082
}

Semantic roles & 50–950 ramp

primary
#4052D8
secondary
#DAD29A
accent
#D53FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4052D8

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

Preview Lab → · Contrast checker → · Palette generator →

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