#4052AA#4052AA

#4052AA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.142 H 271.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#4052AA
RGBrgb(64, 82, 170)
HSLhsl(230, 45%, 46%)
HSVhsv(230, 62%, 67%)
CMYKcmyk(62.4%, 51.8%, 0%, 33.3%)
CIE-LABlab(37.89, 21.21, -49.49)
CIE-LCHlch(37.89, 53.85, 293.19°)
OKLaboklab(47.26% 0.0032 -0.1418)
OKLCHoklch(47.26% 0.142 271.3)
XYZxyz(12.3849, 10.0258, 39.3049)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052AA #AA9840
analogous
#4087AA #4052AA #6340AA
triadic
#4052AA #AA4052 #52AA40
tetradic
#4052AA #AA4087 #AA9840 #40AA63
square
#4052AA #AA4087 #AA9840 #40AA63
split-complementary
#4052AA #AA6340 #87AA40
monochromatic
#1F2751 #2F3D7E #4052AA #6373C4 #8F9BD5

Accessibility & contrast

On white

6.99
#4052AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4052AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052AA#FFFFFF#000000##FFFFFF
##4052AA1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205EAD
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4052aa;
/* rgb */ color: rgb(64, 82, 170);
/* oklch */ color: oklch(47.3% 0.142 271.3);
Tailwind
colors: {
  custom: {
    50: '#7f82c4',
    500: '#4052aa',
    950: '#000000',
  },
}
SCSS
$custom: #4052aa;
$custom-light: #7f82c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4052aa",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 229.811,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47255,
    "c": 0.14185,
    "h": 271.3
  },
  "luminance": 0.10027
}

Semantic roles & 50–950 ramp

primary
#4052AA
secondary
#C0B686
accent
#BF53D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4052AA

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

Preview Lab → · Contrast checker → · Palette generator →

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