#4056C8#4056C8

#4056C8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.178 H 270.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4056C8
RGBrgb(64, 86, 200)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(68%, 57%, 0%, 21.6%)
CIE-LABlab(41.08, 29.26, -61.92)
CIE-LCHlch(41.08, 68.48, 295.29°)
OKLaboklab(50.33% 0.0013 -0.1783)
OKLCHoklch(50.33% 0.178 270.4)
XYZxyz(15.8639, 11.9142, 56.0960)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C8 #C8B240
analogous
#409AC8 #4056C8 #6E40C8
triadic
#4056C8 #C84056 #56C840
tetradic
#4056C8 #C8409A #C8B240 #40C86E
square
#4056C8 #C8409A #C8B240 #40C86E
split-complementary
#4056C8 #C86E40 #9AC840
monochromatic
#202C6E #2D3F9D #4056C8 #7080D6 #9FAAE3

Accessibility & contrast

On white

6.21
#4056C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4056C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C8#FFFFFF#000000##FFFFFF
##4056C81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4056c8;
/* rgb */ color: rgb(64, 86, 200);
/* oklch */ color: oklch(50.3% 0.178 270.4);
Tailwind
colors: {
  custom: {
    50: '#8585da',
    500: '#4056c8',
    950: '#000000',
  },
}
SCSS
$custom: #4056c8;
$custom-light: #8585da;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c8",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 230.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50331,
    "c": 0.17831,
    "h": 270.4
  },
  "luminance": 0.11916
}

Semantic roles & 50–950 ramp

primary
#4056C8
secondary
#D0C694
accent
#C649DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4056C8

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

Preview Lab → · Contrast checker → · Palette generator →

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