#4052D3#4052D3

#4052D3 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.198 H 271.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4052D3
RGBrgb(64, 82, 211)
HSLhsl(233, 63%, 54%)
HSVhsv(233, 70%, 83%)
CMYKcmyk(69.7%, 61.1%, 0%, 17.3%)
CIE-LABlab(40.94, 35.66, -68.49)
CIE-LCHlch(40.94, 77.22, 297.50°)
OKLaboklab(50.49% 0.0044 -0.1977)
OKLCHoklch(50.49% 0.198 271.3)
XYZxyz(16.8855, 11.8261, 63.0082)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052D3 #D3C140
analogous
#409CD3 #4052D3 #7840D3
triadic
#4052D3 #D34052 #52D340
tetradic
#4052D3 #D3409C #D3C140 #40D378
square
#4052D3 #D3409C #D3C140 #40D378
split-complementary
#4052D3 #D37840 #9CD340
monochromatic
#1D287C #2838AE #4052D3 #727FDE #A3ACEA

Accessibility & contrast

On white

6.24
#4052D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4052D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052D3
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052D3#FFFFFF#000000##FFFFFF
##4052D31.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4052d3;
/* rgb */ color: rgb(64, 82, 211);
/* oklch */ color: oklch(50.5% 0.198 271.3);
Tailwind
colors: {
  custom: {
    50: '#8782e1',
    500: '#4052d3',
    950: '#000000',
  },
}
SCSS
$custom: #4052d3;
$custom-light: #8782e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4052d3",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 232.653,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50493,
    "c": 0.19772,
    "h": 271.3
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#4052D3
secondary
#D7CF98
accent
#D242E6
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4052D3

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

Preview Lab → · Contrast checker → · Palette generator →

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