#4052C0#4052C0

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

Color values

HEX#4052C0
RGBrgb(64, 82, 192)
HSLhsl(232, 50%, 50%)
HSVhsv(232, 67%, 75%)
CMYKcmyk(66.7%, 57.3%, 0%, 24.7%)
CIE-LABlab(39.46, 28.99, -59.90)
CIE-LCHlch(39.46, 66.54, 295.82°)
OKLaboklab(48.93% 0.0044 -0.1724)
OKLCHoklch(48.93% 0.172 271.5)
XYZxyz(14.6429, 10.9290, 51.1968)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052C0 #C0AE40
analogous
#4092C0 #4052C0 #6E40C0
triadic
#4052C0 #C04052 #52C040
tetradic
#4052C0 #C04092 #C0AE40 #40C06E
square
#4052C0 #C04092 #C0AE40 #40C06E
split-complementary
#4052C0 #C06E40 #92C040
monochromatic
#212B64 #303E92 #4052C0 #6E7CCF #9CA5DE

Accessibility & contrast

On white

6.59
#4052C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4052C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052C0
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052C0#FFFFFF#000000##FFFFFF
##4052C01.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4052c0;
/* rgb */ color: rgb(64, 82, 192);
/* oklch */ color: oklch(48.9% 0.172 271.5);
Tailwind
colors: {
  custom: {
    50: '#8382d4',
    500: '#4052c0',
    950: '#000000',
  },
}
SCSS
$custom: #4052c0;
$custom-light: #8382d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4052c0",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 192
  },
  "hsl": {
    "h": 231.563,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48934,
    "c": 0.17248,
    "h": 271.5
  },
  "luminance": 0.1093
}

Semantic roles & 50–950 ramp

primary
#4052C0
secondary
#CBC291
accent
#C64EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4052C0

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

Preview Lab → · Contrast checker → · Palette generator →

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