#4056D8#4056D8

#4056D8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.199 H 270.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#4056D8
RGBrgb(64, 86, 216)
HSLhsl(231, 66%, 55%)
HSVhsv(231, 70%, 85%)
CMYKcmyk(70.4%, 60.2%, 0%, 15.3%)
CIE-LABlab(42.31, 34.90, -69.12)
CIE-LCHlch(42.31, 77.43, 296.79°)
OKLaboklab(51.63% 0.0014 -0.1995)
OKLCHoklch(51.63% 0.199 270.4)
XYZxyz(17.8326, 12.7016, 66.4643)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056D8 #D8C240
analogous
#40A2D8 #4056D8 #7640D8
triadic
#4056D8 #D84056 #56D840
tetradic
#4056D8 #D840A2 #D8C240 #40D876
square
#4056D8 #D840A2 #D8C240 #40D876
split-complementary
#4056D8 #D87640 #A2D840
monochromatic
#1B2A83 #253AB6 #4056D8 #7383E2 #A6B0ED

Accessibility & contrast

On white

5.93
#4056D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4056D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056D8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056D8#FFFFFF#000000##FFFFFF
##4056D81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4056d8;
/* rgb */ color: rgb(64, 86, 216);
/* oklch */ color: oklch(51.6% 0.199 270.4);
Tailwind
colors: {
  custom: {
    50: '#8885e5',
    500: '#4056d8',
    950: '#000000',
  },
}
SCSS
$custom: #4056d8;
$custom-light: #8885e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4056d8",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 216
  },
  "hsl": {
    "h": 231.316,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51631,
    "c": 0.19947,
    "h": 270.4
  },
  "luminance": 0.12703
}

Semantic roles & 50–950 ramp

primary
#4056D8
secondary
#DAD19A
accent
#D03FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4056D8

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

Preview Lab → · Contrast checker → · Palette generator →

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