#4056BD#4056BD

#4056BD is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.5% C 0.163 H 270.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4056BD
RGBrgb(64, 86, 189)
HSLhsl(229, 49%, 50%)
HSVhsv(229, 66%, 74%)
CMYKcmyk(66.1%, 54.5%, 0%, 25.9%)
CIE-LABlab(40.28, 25.36, -56.83)
CIE-LCHlch(40.28, 62.23, 294.05°)
OKLaboklab(49.48% 0.0008 -0.1633)
OKLCHoklch(49.48% 0.163 270.3)
XYZxyz(14.6243, 11.4183, 49.5675)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056BD #BDA740
analogous
#4095BD #4056BD #6940BD
triadic
#4056BD #BD4056 #56BD40
tetradic
#4056BD #BD4095 #BDA740 #40BD69
square
#4056BD #BD4095 #BDA740 #40BD69
split-complementary
#4056BD #BD6940 #95BD40
monochromatic
#212C62 #31418F #4056BD #6D7ECD #9AA6DD

Accessibility & contrast

On white

6.39
#4056BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4056BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056BD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056BD#FFFFFF#000000##FFFFFF
##4056BD1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0565C1
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#006F81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4056bd;
/* rgb */ color: rgb(64, 86, 189);
/* oklch */ color: oklch(49.5% 0.163 270.3);
Tailwind
colors: {
  custom: {
    50: '#8385d2',
    500: '#4056bd',
    950: '#000000',
  },
}
SCSS
$custom: #4056bd;
$custom-light: #8385d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4056bd",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 229.44,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49475,
    "c": 0.16333,
    "h": 270.3
  },
  "luminance": 0.1142
}

Semantic roles & 50–950 ramp

primary
#4056BD
secondary
#C9BF90
accent
#C14FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056BD

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

Preview Lab → · Contrast checker → · Palette generator →

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