#4056B7#4056B7

#4056B7 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.155 H 270.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4056B7
RGBrgb(64, 86, 183)
HSLhsl(229, 48%, 48%)
HSVhsv(229, 65%, 72%)
CMYKcmyk(65%, 53%, 0%, 28.2%)
CIE-LABlab(39.85, 23.22, -54.00)
CIE-LCHlch(39.85, 58.78, 293.27°)
OKLaboklab(49.02% 0.0004 -0.155)
OKLCHoklch(49.02% 0.155 270.1)
XYZxyz(13.9865, 11.1632, 46.2082)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056B7 #B7A140
analogous
#4091B7 #4056B7 #6640B7
triadic
#4056B7 #B74056 #56B740
tetradic
#4056B7 #B74091 #B7A140 #40B766
square
#4056B7 #B74091 #B7A140 #40B766
split-complementary
#4056B7 #B76640 #91B740
monochromatic
#202B5C #30418A #4056B7 #697BCB #97A3DB

Accessibility & contrast

On white

6.50
#4056B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4056B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056B7
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056B7#FFFFFF#000000##FFFFFF
##4056B71.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1763BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4056b7;
/* rgb */ color: rgb(64, 86, 183);
/* oklch */ color: oklch(49.0% 0.155 270.1);
Tailwind
colors: {
  custom: {
    50: '#8185cd',
    500: '#4056b7',
    950: '#000000',
  },
}
SCSS
$custom: #4056b7;
$custom-light: #8185cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4056b7",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 228.908,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.15501,
    "h": 270.1
  },
  "luminance": 0.11164
}

Semantic roles & 50–950 ramp

primary
#4056B7
secondary
#C6BC8D
accent
#BF50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4056B7

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

Preview Lab → · Contrast checker → · Palette generator →

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