#4052BC#4052BC

#4052BC is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.6% C 0.167 H 271.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4052BC
RGBrgb(64, 82, 188)
HSLhsl(231, 49%, 49%)
HSVhsv(231, 66%, 74%)
CMYKcmyk(66%, 56.4%, 0%, 26.3%)
CIE-LABlab(39.16, 27.57, -58.05)
CIE-LCHlch(39.16, 64.26, 295.41°)
OKLaboklab(48.62% 0.0043 -0.167)
OKLCHoklch(48.62% 0.167 271.5)
XYZxyz(14.2057, 10.7541, 48.8943)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052BC #BCAA40
analogous
#4090BC #4052BC #6C40BC
triadic
#4052BC #BC4052 #52BC40
tetradic
#4052BC #BC4090 #BCAA40 #40BC6C
square
#4052BC #BC4090 #BCAA40 #40BC6C
split-complementary
#4052BC #BC6C40 #90BC40
monochromatic
#212A61 #303E8E #4052BC #6C7ACD #9AA4DD

Accessibility & contrast

On white

6.66
#4052BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4052BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052BC#FFFFFF#000000##FFFFFF
##4052BC1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4052bc;
/* rgb */ color: rgb(64, 82, 188);
/* oklch */ color: oklch(48.6% 0.167 271.5);
Tailwind
colors: {
  custom: {
    50: '#8382d1',
    500: '#4052bc',
    950: '#000000',
  },
}
SCSS
$custom: #4052bc;
$custom-light: #8382d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4052bc",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 231.29,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.16703,
    "h": 271.5
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#4052BC
secondary
#C9C08F
accent
#C54FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4052BC

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

Preview Lab → · Contrast checker → · Palette generator →

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