#4056E2#4056E2

#4056E2 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.5% C 0.212 H 270.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4056E2
RGBrgb(64, 86, 226)
HSLhsl(232, 74%, 57%)
HSVhsv(232, 72%, 89%)
CMYKcmyk(71.7%, 61.9%, 0%, 11.4%)
CIE-LABlab(43.11, 38.39, -73.51)
CIE-LCHlch(43.11, 82.93, 297.58°)
OKLaboklab(52.48% 0.0012 -0.2123)
OKLCHoklch(52.48% 0.212 270.3)
XYZxyz(19.1649, 13.2346, 73.4813)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056E2 #E2CC40
analogous
#40A7E2 #4056E2 #7B40E2
triadic
#4056E2 #E24056 #56E240
tetradic
#4056E2 #E240A7 #E2CC40 #40E27B
square
#4056E2 #E240A7 #E2CC40 #40E27B
split-complementary
#4056E2 #E27B40 #A7E240
monochromatic
#162792 #1E35C7 #4056E2 #7585EA #AAB4F2

Accessibility & contrast

On white

5.76
#4056E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4056E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056E2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056E2#FFFFFF#000000##FFFFFF
##4056E21.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4056e2;
/* rgb */ color: rgb(64, 86, 226);
/* oklch */ color: oklch(52.5% 0.212 270.3);
Tailwind
colors: {
  custom: {
    50: '#8a85ec',
    500: '#4056e2',
    950: '#000000',
  },
}
SCSS
$custom: #4056e2;
$custom-light: #8a85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4056e2",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 231.852,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52476,
    "c": 0.21234,
    "h": 270.3
  },
  "luminance": 0.13237
}

Semantic roles & 50–950 ramp

primary
#4056E2
secondary
#E0D79E
accent
#D738F0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4056E2

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

Preview Lab → · Contrast checker → · Palette generator →

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