#4056BF#4056BF

#4056BF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.166 H 270.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#4056BF
RGBrgb(64, 86, 191)
HSLhsl(230, 50%, 50%)
HSVhsv(230, 66%, 75%)
CMYKcmyk(66.5%, 55%, 0%, 25.1%)
CIE-LABlab(40.42, 26.07, -57.76)
CIE-LCHlch(40.42, 63.37, 294.29°)
OKLaboklab(49.63% 0.0009 -0.1661)
OKLCHoklch(49.63% 0.166 270.3)
XYZxyz(14.8429, 11.5058, 50.7187)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056BF #BFA940
analogous
#4096BF #4056BF #6940BF
triadic
#4056BF #BF4056 #56BF40
tetradic
#4056BF #BF4096 #BFA940 #40BF69
square
#4056BF #BF4096 #BFA940 #40BF69
split-complementary
#4056BF #BF6940 #96BF40
monochromatic
#212D63 #314191 #4056BF #6E7FCE #9CA7DE

Accessibility & contrast

On white

6.36
#4056BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4056BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056BF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056BF#FFFFFF#000000##FFFFFF
##4056BF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#006F82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4056bf;
/* rgb */ color: rgb(64, 86, 191);
/* oklch */ color: oklch(49.6% 0.166 270.3);
Tailwind
colors: {
  custom: {
    50: '#8385d3',
    500: '#4056bf',
    950: '#000000',
  },
}
SCSS
$custom: #4056bf;
$custom-light: #8385d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4056bf",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 229.606,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49628,
    "c": 0.16608,
    "h": 270.3
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#4056BF
secondary
#CAC091
accent
#C14ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056BF

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

Preview Lab → · Contrast checker → · Palette generator →

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