#4052BB#4052BB

#4052BB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.5% C 0.166 H 271.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#4052BB
RGBrgb(64, 82, 187)
HSLhsl(231, 49%, 49%)
HSVhsv(231, 66%, 73%)
CMYKcmyk(65.8%, 56.1%, 0%, 26.7%)
CIE-LABlab(39.09, 27.22, -57.58)
CIE-LCHlch(39.09, 63.69, 295.30°)
OKLaboklab(48.54% 0.0043 -0.1656)
OKLCHoklch(48.54% 0.166 271.5)
XYZxyz(14.0983, 10.7112, 48.3286)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052BB #BBA940
analogous
#408FBB #4052BB #6C40BB
triadic
#4052BB #BB4052 #52BB40
tetradic
#4052BB #BB408F #BBA940 #40BB6C
square
#4052BB #BB408F #BBA940 #40BB6C
split-complementary
#4052BB #BB6C40 #8FBB40
monochromatic
#212A60 #303E8D #4052BB #6C7ACD #99A3DC

Accessibility & contrast

On white

6.68
#4052BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4052BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052BB#FFFFFF#000000##FFFFFF
##4052BB1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4052bb;
/* rgb */ color: rgb(64, 82, 187);
/* oklch */ color: oklch(48.5% 0.166 271.5);
Tailwind
colors: {
  custom: {
    50: '#8282d0',
    500: '#4052bb',
    950: '#000000',
  },
}
SCSS
$custom: #4052bb;
$custom-light: #8282d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4052bb",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 231.22,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4854,
    "c": 0.16566,
    "h": 271.5
  },
  "luminance": 0.10712
}

Semantic roles & 50–950 ramp

primary
#4052BB
secondary
#C8C08F
accent
#C44FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4052BB

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

Preview Lab → · Contrast checker → · Palette generator →

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