#4052A2#4052A2

#4052A2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.130 H 271.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4052A2
RGBrgb(64, 82, 162)
HSLhsl(229, 43%, 44%)
HSVhsv(229, 60%, 64%)
CMYKcmyk(60.5%, 49.4%, 0%, 36.5%)
CIE-LABlab(37.36, 18.39, -45.58)
CIE-LCHlch(37.36, 49.15, 291.97°)
OKLaboklab(46.68% 0.0024 -0.1303)
OKLCHoklch(46.68% 0.13 271)
XYZxyz(11.6511, 9.7323, 35.4400)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052A2 #A29040
analogous
#4083A2 #4052A2 #5F40A2
triadic
#4052A2 #A24052 #52A240
tetradic
#4052A2 #A24083 #A29040 #40A25F
square
#4052A2 #A24083 #A29040 #40A25F
split-complementary
#4052A2 #A25F40 #83A240
monochromatic
#1D264A #2F3C76 #4052A2 #5F71C0 #8B98D1

Accessibility & contrast

On white

7.13
#4052A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4052A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4052A2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052A2#FFFFFF#000000##FFFFFF
##4052A21.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4052a2;
/* rgb */ color: rgb(64, 82, 162);
/* oklch */ color: oklch(46.7% 0.130 271.0);
Tailwind
colors: {
  custom: {
    50: '#7e82be',
    500: '#4052a2',
    950: '#000000',
  },
}
SCSS
$custom: #4052a2;
$custom-light: #7e82be;
$custom-dark: #000000;
JSON
{
  "hex": "#4052a2",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 228.98,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46683,
    "c": 0.13031,
    "h": 271
  },
  "luminance": 0.09733
}

Semantic roles & 50–950 ramp

primary
#4052A2
secondary
#BCB182
accent
#BC55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4052A2

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

Preview Lab → · Contrast checker → · Palette generator →

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