#4052BF#4052BF

#4052BF is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.171 H 271.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#4052BF
RGBrgb(64, 82, 191)
HSLhsl(231, 50%, 50%)
HSVhsv(231, 66%, 75%)
CMYKcmyk(66.5%, 57.1%, 0%, 25.1%)
CIE-LABlab(39.39, 28.63, -59.44)
CIE-LCHlch(39.39, 65.97, 295.72°)
OKLaboklab(48.85% 0.0044 -0.1711)
OKLCHoklch(48.85% 0.171 271.5)
XYZxyz(14.5324, 10.8848, 50.6152)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052BF #BFAD40
analogous
#4092BF #4052BF #6D40BF
triadic
#4052BF #BF4052 #52BF40
tetradic
#4052BF #BF4092 #BFAD40 #40BF6D
square
#4052BF #BF4092 #BFAD40 #40BF6D
split-complementary
#4052BF #BF6D40 #92BF40
monochromatic
#212B63 #313E91 #4052BF #6E7CCE #9CA5DE

Accessibility & contrast

On white

6.61
#4052BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4052BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052BF#FFFFFF#000000##FFFFFF
##4052BF1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4052bf;
/* rgb */ color: rgb(64, 82, 191);
/* oklch */ color: oklch(48.9% 0.171 271.5);
Tailwind
colors: {
  custom: {
    50: '#8382d3',
    500: '#4052bf',
    950: '#000000',
  },
}
SCSS
$custom: #4052bf;
$custom-light: #8382d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4052bf",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 231.496,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48854,
    "c": 0.17112,
    "h": 271.5
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#4052BF
secondary
#CAC291
accent
#C64ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4052BF

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

Preview Lab → · Contrast checker → · Palette generator →

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