#4056CB#4056CB

#4056CB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.182 H 270.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#4056CB
RGBrgb(64, 86, 203)
HSLhsl(231, 57%, 52%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.5%, 57.6%, 0%, 20.4%)
CIE-LABlab(41.30, 30.32, -63.29)
CIE-LCHlch(41.30, 70.18, 295.60°)
OKLaboklab(50.57% 0.0013 -0.1823)
OKLCHoklch(50.57% 0.182 270.4)
XYZxyz(16.2180, 12.0558, 57.9606)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056CB #CBB540
analogous
#409BCB #4056CB #7040CB
triadic
#4056CB #CB4056 #56CB40
tetradic
#4056CB #CB409B #CBB540 #40CB70
square
#4056CB #CB409B #CBB540 #40CB70
split-complementary
#4056CB #CB7040 #9BCB40
monochromatic
#1F2C72 #2C3FA2 #4056CB #7081D8 #A0ABE5

Accessibility & contrast

On white

6.16
#4056CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4056CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056CB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056CB#FFFFFF#000000##FFFFFF
##4056CB1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4056cb;
/* rgb */ color: rgb(64, 86, 203);
/* oklch */ color: oklch(50.6% 0.182 270.4);
Tailwind
colors: {
  custom: {
    50: '#8585dc',
    500: '#4056cb',
    950: '#000000',
  },
}
SCSS
$custom: #4056cb;
$custom-light: #8585dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4056cb",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 230.504,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5057,
    "c": 0.18234,
    "h": 270.4
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#4056CB
secondary
#D2C895
accent
#C847E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4056CB

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

Preview Lab → · Contrast checker → · Palette generator →

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