#4056C0#4056C0

#4056C0 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.7% C 0.167 H 270.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#4056C0
RGBrgb(64, 86, 192)
HSLhsl(230, 50%, 50%)
HSVhsv(230, 67%, 75%)
CMYKcmyk(66.7%, 55.2%, 0%, 24.7%)
CIE-LABlab(40.49, 26.42, -58.23)
CIE-LCHlch(40.49, 63.94, 294.41°)
OKLaboklab(49.71% 0.001 -0.1674)
OKLCHoklch(49.71% 0.167 270.3)
XYZxyz(14.9533, 11.5499, 51.3003)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C0 #C0AA40
analogous
#4096C0 #4056C0 #6A40C0
triadic
#4056C0 #C04056 #56C040
tetradic
#4056C0 #C04096 #C0AA40 #40C06A
square
#4056C0 #C04096 #C0AA40 #40C06A
split-complementary
#4056C0 #C06A40 #96C040
monochromatic
#212D64 #304192 #4056C0 #6E7FCF #9CA7DE

Accessibility & contrast

On white

6.34
#4056C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4056C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C0
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C0#FFFFFF#000000##FFFFFF
##4056C01.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C4
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#006F82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4056c0;
/* rgb */ color: rgb(64, 86, 192);
/* oklch */ color: oklch(49.7% 0.167 270.3);
Tailwind
colors: {
  custom: {
    50: '#8385d4',
    500: '#4056c0',
    950: '#000000',
  },
}
SCSS
$custom: #4056c0;
$custom-light: #8385d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c0",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 192
  },
  "hsl": {
    "h": 229.688,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49705,
    "c": 0.16745,
    "h": 270.3
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#4056C0
secondary
#CBC191
accent
#C24EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056C0

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

Preview Lab → · Contrast checker → · Palette generator →

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