#4056C2#4056C2

#4056C2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.9% C 0.170 H 270.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#4056C2
RGBrgb(64, 86, 194)
HSLhsl(230, 52%, 51%)
HSVhsv(230, 67%, 76%)
CMYKcmyk(67%, 55.7%, 0%, 23.9%)
CIE-LABlab(40.64, 27.13, -59.16)
CIE-LCHlch(40.64, 65.08, 294.64°)
OKLaboklab(49.86% 0.0011 -0.1702)
OKLCHoklch(49.86% 0.17 270.4)
XYZxyz(15.1764, 11.6392, 52.4753)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C2 #C2AC40
analogous
#4097C2 #4056C2 #6B40C2
triadic
#4056C2 #C24056 #56C240
tetradic
#4056C2 #C24097 #C2AC40 #40C26B
square
#4056C2 #C24097 #C2AC40 #40C26B
split-complementary
#4056C2 #C26B40 #97C240
monochromatic
#212D67 #304195 #4056C2 #6E7FD1 #9DA8E0

Accessibility & contrast

On white

6.31
#4056C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4056C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C2#FFFFFF#000000##FFFFFF
##4056C21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4056c2;
/* rgb */ color: rgb(64, 86, 194);
/* oklch */ color: oklch(49.9% 0.170 270.4);
Tailwind
colors: {
  custom: {
    50: '#8485d5',
    500: '#4056c2',
    950: '#000000',
  },
}
SCSS
$custom: #4056c2;
$custom-light: #8485d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c2",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 229.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4986,
    "c": 0.17019,
    "h": 270.4
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#4056C2
secondary
#CCC292
accent
#C34DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056C2

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

Preview Lab → · Contrast checker → · Palette generator →

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