#4052D2#4052D2

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

Color values

HEX#4052D2
RGBrgb(64, 82, 210)
HSLhsl(233, 62%, 54%)
HSVhsv(233, 70%, 82%)
CMYKcmyk(69.5%, 61%, 0%, 17.6%)
CIE-LABlab(40.86, 35.31, -68.05)
CIE-LCHlch(40.86, 76.66, 297.42°)
OKLaboklab(50.41% 0.0044 -0.1964)
OKLCHoklch(50.41% 0.196 271.3)
XYZxyz(16.7606, 11.7761, 62.3500)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052D2 #D2C040
analogous
#409BD2 #4052D2 #7740D2
triadic
#4052D2 #D24052 #52D240
tetradic
#4052D2 #D2409B #D2C040 #40D277
square
#4052D2 #D2409B #D2C040 #40D277
split-complementary
#4052D2 #D27740 #9BD240
monochromatic
#1D287B #2939AC #4052D2 #727FDE #A3ACE9

Accessibility & contrast

On white

6.26
#4052D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4052D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052D2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052D2#FFFFFF#000000##FFFFFF
##4052D21.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4052d2;
/* rgb */ color: rgb(64, 82, 210);
/* oklch */ color: oklch(50.4% 0.196 271.3);
Tailwind
colors: {
  custom: {
    50: '#8782e1',
    500: '#4052d2',
    950: '#000000',
  },
}
SCSS
$custom: #4052d2;
$custom-light: #8782e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4052d2",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 232.603,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50408,
    "c": 0.19642,
    "h": 271.3
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#4052D2
secondary
#D6CE98
accent
#D143E5
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4052D2

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

Preview Lab → · Contrast checker → · Palette generator →

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