#4056B2#4056B2

#4056B2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.148 H 270.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4056B2
RGBrgb(64, 86, 178)
HSLhsl(228, 47%, 47%)
HSVhsv(228, 64%, 70%)
CMYKcmyk(64%, 51.7%, 0%, 30.2%)
CIE-LABlab(39.51, 21.45, -51.61)
CIE-LCHlch(39.51, 55.89, 292.56°)
OKLaboklab(48.66% 0 -0.148)
OKLCHoklch(48.66% 0.148 270)
XYZxyz(13.4753, 10.9587, 43.5160)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056B2 #B29C40
analogous
#408FB2 #4056B2 #6340B2
triadic
#4056B2 #B24056 #56B240
tetradic
#4056B2 #B2408F #B29C40 #40B263
square
#4056B2 #B2408F #B29C40 #40B263
split-complementary
#4056B2 #B26340 #8FB240
monochromatic
#202B58 #304085 #4056B2 #677AC8 #94A1D8

Accessibility & contrast

On white

6.58
#4056B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4056B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056B2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056B2#FFFFFF#000000##FFFFFF
##4056B21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4056b2;
/* rgb */ color: rgb(64, 86, 178);
/* oklch */ color: oklch(48.7% 0.148 270.0);
Tailwind
colors: {
  custom: {
    50: '#8185ca',
    500: '#4056b2',
    950: '#000000',
  },
}
SCSS
$custom: #4056b2;
$custom-light: #8185ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4056b2",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 228.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48655,
    "c": 0.14799,
    "h": 270
  },
  "luminance": 0.1096
}

Semantic roles & 50–950 ramp

primary
#4056B2
secondary
#C4B98A
accent
#BD51D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4056B2

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

Preview Lab → · Contrast checker → · Palette generator →

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