#4056BA#4056BA

#4056BA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.2% C 0.159 H 270.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4056BA
RGBrgb(64, 86, 186)
HSLhsl(229, 49%, 49%)
HSVhsv(229, 66%, 73%)
CMYKcmyk(65.6%, 53.8%, 0%, 27.1%)
CIE-LABlab(40.06, 24.29, -55.42)
CIE-LCHlch(40.06, 60.51, 293.67°)
OKLaboklab(49.25% 0.0006 -0.1592)
OKLCHoklch(49.25% 0.159 270.2)
XYZxyz(14.3021, 11.2894, 47.8702)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056BA #BAA440
analogous
#4093BA #4056BA #6740BA
triadic
#4056BA #BA4056 #56BA40
tetradic
#4056BA #BA4093 #BAA440 #40BA67
square
#4056BA #BA4093 #BAA440 #40BA67
split-complementary
#4056BA #BA6740 #93BA40
monochromatic
#212C5F #30418C #4056BA #6B7DCC #99A5DC

Accessibility & contrast

On white

6.45
#4056BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4056BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056BA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056BA#FFFFFF#000000##FFFFFF
##4056BA1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1064BD
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4056ba;
/* rgb */ color: rgb(64, 86, 186);
/* oklch */ color: oklch(49.2% 0.159 270.2);
Tailwind
colors: {
  custom: {
    50: '#8285cf',
    500: '#4056ba',
    950: '#000000',
  },
}
SCSS
$custom: #4056ba;
$custom-light: #8285cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4056ba",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 229.18,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49248,
    "c": 0.15918,
    "h": 270.2
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

primary
#4056BA
secondary
#C8BD8E
accent
#C04FD8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4056BA

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

Preview Lab → · Contrast checker → · Palette generator →

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