#4052B2#4052B2

#4052B2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.153 H 271.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#4052B2
RGBrgb(64, 82, 178)
HSLhsl(231, 47%, 47%)
HSVhsv(231, 64%, 70%)
CMYKcmyk(64%, 53.9%, 0%, 30.2%)
CIE-LABlab(38.44, 24.04, -53.34)
CIE-LCHlch(38.44, 58.50, 294.26°)
OKLaboklab(47.85% 0.0038 -0.1531)
OKLCHoklch(47.85% 0.153 271.4)
XYZxyz(13.1648, 10.3378, 43.4125)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052B2 #B2A040
analogous
#408BB2 #4052B2 #6740B2
triadic
#4052B2 #B24052 #52B240
tetradic
#4052B2 #B2408B #B2A040 #40B267
square
#4052B2 #B2408B #B2A040 #40B267
split-complementary
#4052B2 #B26740 #8BB240
monochromatic
#202958 #303D85 #4052B2 #6776C8 #949FD8

Accessibility & contrast

On white

6.85
#4052B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4052B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052B2#FFFFFF#000000##FFFFFF
##4052B21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4052b2;
/* rgb */ color: rgb(64, 82, 178);
/* oklch */ color: oklch(47.8% 0.153 271.4);
Tailwind
colors: {
  custom: {
    50: '#8182ca',
    500: '#4052b2',
    950: '#000000',
  },
}
SCSS
$custom: #4052b2;
$custom-light: #8182ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4052b2",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 230.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47848,
    "c": 0.15317,
    "h": 271.4
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#4052B2
secondary
#C4BB8A
accent
#C251D7
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4052B2

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

Preview Lab → · Contrast checker → · Palette generator →

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