#4056CC#4056CC

#4056CC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.184 H 270.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4056CC
RGBrgb(64, 86, 204)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 69%, 80%)
CMYKcmyk(68.6%, 57.8%, 0%, 20%)
CIE-LABlab(41.38, 30.68, -63.74)
CIE-LCHlch(41.38, 70.74, 295.70°)
OKLaboklab(50.65% 0.0014 -0.1837)
OKLCHoklch(50.65% 0.184 270.4)
XYZxyz(16.3375, 12.1036, 58.5903)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056CC #CCB640
analogous
#409CCC #4056CC #7040CC
triadic
#4056CC #CC4056 #56CC40
tetradic
#4056CC #CC409C #CCB640 #40CC70
square
#4056CC #CC409C #CCB640 #40CC70
split-complementary
#4056CC #CC7040 #9CCC40
monochromatic
#1F2C73 #2C3EA3 #4056CC #7081D9 #A1ABE6

Accessibility & contrast

On white

6.14
#4056CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4056CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056CC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056CC#FFFFFF#000000##FFFFFF
##4056CC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4056cc;
/* rgb */ color: rgb(64, 86, 204);
/* oklch */ color: oklch(50.6% 0.184 270.4);
Tailwind
colors: {
  custom: {
    50: '#8685dc',
    500: '#4056cc',
    950: '#000000',
  },
}
SCSS
$custom: #4056cc;
$custom-light: #8685dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4056cc",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 230.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5065,
    "c": 0.18368,
    "h": 270.4
  },
  "luminance": 0.12105
}

Semantic roles & 50–950 ramp

primary
#4056CC
secondary
#D2C995
accent
#C947E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4056CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4056CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva