#4052C1#4052C1

#4052C1 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.174 H 271.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4052C1
RGBrgb(64, 82, 193)
HSLhsl(232, 51%, 50%)
HSVhsv(232, 67%, 76%)
CMYKcmyk(66.8%, 57.5%, 0%, 24.3%)
CIE-LABlab(39.54, 29.34, -60.36)
CIE-LCHlch(39.54, 67.11, 295.92°)
OKLaboklab(49.01% 0.0045 -0.1738)
OKLCHoklch(49.01% 0.174 271.5)
XYZxyz(14.7540, 10.9735, 51.7823)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052C1 #C1AF40
analogous
#4092C1 #4052C1 #6E40C1
triadic
#4052C1 #C14052 #52C140
tetradic
#4052C1 #C14092 #C1AF40 #40C16E
square
#4052C1 #C14092 #C1AF40 #40C16E
split-complementary
#4052C1 #C16E40 #92C140
monochromatic
#212B66 #303E94 #4052C1 #6E7CD0 #9CA6DF

Accessibility & contrast

On white

6.57
#4052C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4052C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052C1
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052C1#FFFFFF#000000##FFFFFF
##4052C11.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4052c1;
/* rgb */ color: rgb(64, 82, 193);
/* oklch */ color: oklch(49.0% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#8482d5',
    500: '#4052c1',
    950: '#000000',
  },
}
SCSS
$custom: #4052c1;
$custom-light: #8482d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4052c1",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 231.628,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.17384,
    "h": 271.5
  },
  "luminance": 0.10975
}

Semantic roles & 50–950 ramp

primary
#4052C1
secondary
#CBC392
accent
#C74DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4052C1

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

Preview Lab → · Contrast checker → · Palette generator →

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