#4056AC#4056AC

#4056AC is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.139 H 269.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#4056AC
RGBrgb(64, 86, 172)
HSLhsl(228, 46%, 46%)
HSVhsv(228, 63%, 67%)
CMYKcmyk(62.8%, 50%, 0%, 32.5%)
CIE-LABlab(39.11, 19.32, -48.71)
CIE-LCHlch(39.11, 52.40, 291.63°)
OKLaboklab(48.22% -0.0006 -0.1395)
OKLCHoklch(48.22% 0.139 269.7)
XYZxyz(12.8860, 10.7230, 40.4124)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056AC #AC9640
analogous
#408CAC #4056AC #6040AC
triadic
#4056AC #AC4056 #56AC40
tetradic
#4056AC #AC408C #AC9640 #40AC60
square
#4056AC #AC408C #AC9640 #40AC60
split-complementary
#4056AC #AC6040 #8CAC40
monochromatic
#1F2953 #2F407F #4056AC #6478C5 #919FD6

Accessibility & contrast

On white

6.68
#4056AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4056AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056AC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056AC#FFFFFF#000000##FFFFFF
##4056AC1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#0F58AA
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4056ac;
/* rgb */ color: rgb(64, 86, 172);
/* oklch */ color: oklch(48.2% 0.139 269.7);
Tailwind
colors: {
  custom: {
    50: '#7f85c5',
    500: '#4056ac',
    950: '#000000',
  },
}
SCSS
$custom: #4056ac;
$custom-light: #7f85c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4056ac",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 172
  },
  "hsl": {
    "h": 227.778,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48223,
    "c": 0.13946,
    "h": 269.7
  },
  "luminance": 0.10724
}

Semantic roles & 50–950 ramp

primary
#4056AC
secondary
#C1B587
accent
#BB52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4056AC

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

Preview Lab → · Contrast checker → · Palette generator →

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