#4056AB#4056AB

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

Color values

HEX#4056AB
RGBrgb(64, 86, 171)
HSLhsl(228, 46%, 46%)
HSVhsv(228, 63%, 67%)
CMYKcmyk(62.6%, 49.7%, 0%, 32.9%)
CIE-LABlab(39.04, 18.96, -48.23)
CIE-LCHlch(39.04, 51.82, 291.46°)
OKLaboklab(48.15% -0.0008 -0.138)
OKLCHoklch(48.15% 0.138 269.7)
XYZxyz(12.7903, 10.6848, 39.9085)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056AB #AB9540
analogous
#408BAB #4056AB #5F40AB
triadic
#4056AB #AB4056 #56AB40
tetradic
#4056AB #AB408B #AB9540 #40AB5F
square
#4056AB #AB408B #AB9540 #40AB5F
split-complementary
#4056AB #AB5F40 #8BAB40
monochromatic
#1F2952 #2F407E #4056AB #6377C5 #909ED5

Accessibility & contrast

On white

6.69
#4056AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4056AB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056AB#FFFFFF#000000##FFFFFF
##4056AB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#1257A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4056ab;
/* rgb */ color: rgb(64, 86, 171);
/* oklch */ color: oklch(48.2% 0.138 269.7);
Tailwind
colors: {
  custom: {
    50: '#7f85c4',
    500: '#4056ab',
    950: '#000000',
  },
}
SCSS
$custom: #4056ab;
$custom-light: #7f85c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4056ab",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 227.664,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.13803,
    "h": 269.7
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#4056AB
secondary
#C1B586
accent
#BA53D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4056AB

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

Preview Lab → · Contrast checker → · Palette generator →

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