#4056D2#4056D2

#4056D2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.192 H 270.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4056D2
RGBrgb(64, 86, 210)
HSLhsl(231, 62%, 54%)
HSVhsv(231, 70%, 82%)
CMYKcmyk(69.5%, 59%, 0%, 17.6%)
CIE-LABlab(41.84, 32.79, -66.45)
CIE-LCHlch(41.84, 74.10, 296.27°)
OKLaboklab(51.14% 0.0014 -0.1916)
OKLCHoklch(51.14% 0.192 270.4)
XYZxyz(17.0710, 12.3970, 62.4535)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056D2 #D2BC40
analogous
#409FD2 #4056D2 #7340D2
triadic
#4056D2 #D24056 #56D240
tetradic
#4056D2 #D2409F #D2BC40 #40D273
square
#4056D2 #D2409F #D2BC40 #40D273
split-complementary
#4056D2 #D27340 #9FD240
monochromatic
#1D2B7B #293CAC #4056D2 #7282DE #A3AEE9

Accessibility & contrast

On white

6.03
#4056D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4056D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056D2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056D2#FFFFFF#000000##FFFFFF
##4056D21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#005CD0
Tritanopia (blue-blind)
#00758C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4056d2;
/* rgb */ color: rgb(64, 86, 210);
/* oklch */ color: oklch(51.1% 0.192 270.4);
Tailwind
colors: {
  custom: {
    50: '#8785e1',
    500: '#4056d2',
    950: '#000000',
  },
}
SCSS
$custom: #4056d2;
$custom-light: #8785e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4056d2",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 230.959,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51136,
    "c": 0.19163,
    "h": 270.4
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#4056D2
secondary
#D6CD98
accent
#CD43E5
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4056D2

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

Preview Lab → · Contrast checker → · Palette generator →

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