#4056A2#4056A2

#4056A2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.125 H 269.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#4056A2
RGBrgb(64, 86, 162)
HSLhsl(227, 43%, 44%)
HSVhsv(227, 60%, 64%)
CMYKcmyk(60.5%, 46.9%, 0%, 36.5%)
CIE-LABlab(38.47, 15.78, -43.80)
CIE-LCHlch(38.47, 46.55, 289.82°)
OKLaboklab(47.53% -0.002 -0.125)
OKLCHoklch(47.53% 0.125 269.1)
XYZxyz(11.9615, 10.3532, 35.5434)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056A2 #A28C40
analogous
#4087A2 #4056A2 #5B40A2
triadic
#4056A2 #A24056 #56A240
tetradic
#4056A2 #A24087 #A28C40 #40A25B
square
#4056A2 #A24087 #A28C40 #40A25B
split-complementary
#4056A2 #A25B40 #87A240
monochromatic
#1D274A #2F3F76 #4056A2 #5F75C0 #8B9BD1

Accessibility & contrast

On white

6.84
#4056A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4056A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056A2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056A2#FFFFFF#000000##FFFFFF
##4056A21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#2356A0
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4056a2;
/* rgb */ color: rgb(64, 86, 162);
/* oklch */ color: oklch(47.5% 0.125 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e85be',
    500: '#4056a2',
    950: '#000000',
  },
}
SCSS
$custom: #4056a2;
$custom-light: #7e85be;
$custom-dark: #000000;
JSON
{
  "hex": "#4056a2",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 226.531,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47529,
    "c": 0.12502,
    "h": 269.1
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#4056A2
secondary
#BCAF82
accent
#B755D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #4056A2

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

Preview Lab → · Contrast checker → · Palette generator →

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