#4052CB#4052CB

#4052CB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.8% C 0.187 H 271.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4052CB
RGBrgb(64, 82, 203)
HSLhsl(232, 57%, 52%)
HSVhsv(232, 68%, 80%)
CMYKcmyk(68.5%, 59.6%, 0%, 20.4%)
CIE-LABlab(40.30, 32.86, -64.92)
CIE-LCHlch(40.30, 72.76, 296.85°)
OKLaboklab(49.83% 0.0045 -0.1872)
OKLCHoklch(49.83% 0.187 271.4)
XYZxyz(15.9075, 11.4348, 57.8572)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052CB #CBB940
analogous
#4098CB #4052CB #7340CB
triadic
#4052CB #CB4052 #52CB40
tetradic
#4052CB #CB4098 #CBB940 #40CB73
square
#4052CB #CB4098 #CBB940 #40CB73
split-complementary
#4052CB #CB7340 #98CB40
monochromatic
#1F2A72 #2C3BA2 #4052CB #707ED8 #A0A9E5

Accessibility & contrast

On white

6.39
#4052CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4052CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4052CB#FFFFFF#000000##FFFFFF
##4052CB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4052cb;
/* rgb */ color: rgb(64, 82, 203);
/* oklch */ color: oklch(49.8% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#8682dc',
    500: '#4052cb',
    950: '#000000',
  },
}
SCSS
$custom: #4052cb;
$custom-light: #8682dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4052cb",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 232.23,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49825,
    "c": 0.18722,
    "h": 271.4
  },
  "luminance": 0.11436
}

Semantic roles & 50–950 ramp

primary
#4052CB
secondary
#D2CA95
accent
#CD47E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4052CB

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

Preview Lab → · Contrast checker → · Palette generator →

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