#4056CF#4056CF

#4056CF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.9% C 0.188 H 270.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#4056CF
RGBrgb(64, 86, 207)
HSLhsl(231, 60%, 53%)
HSVhsv(231, 69%, 81%)
CMYKcmyk(69.1%, 58.5%, 0%, 18.8%)
CIE-LABlab(41.61, 31.74, -65.10)
CIE-LCHlch(41.61, 72.42, 295.99°)
OKLaboklab(50.89% 0.0014 -0.1877)
OKLCHoklch(50.89% 0.188 270.4)
XYZxyz(16.7008, 12.2489, 60.5035)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056CF #CFB940
analogous
#409ECF #4056CF #7140CF
triadic
#4056CF #CF4056 #56CF40
tetradic
#4056CF #CF409E #CFB940 #40CF71
square
#4056CF #CF409E #CFB940 #40CF71
split-complementary
#4056CF #CF7140 #9ECF40
monochromatic
#1E2C77 #2A3DA8 #4056CF #7181DB #A2ADE8

Accessibility & contrast

On white

6.09
#4056CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4056CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056CF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056CF#FFFFFF#000000##FFFFFF
##4056CF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4056cf;
/* rgb */ color: rgb(64, 86, 207);
/* oklch */ color: oklch(50.9% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#8685df',
    500: '#4056cf',
    950: '#000000',
  },
}
SCSS
$custom: #4056cf;
$custom-light: #8685df;
$custom-dark: #000000;
JSON
{
  "hex": "#4056cf",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 230.769,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50892,
    "c": 0.18767,
    "h": 270.4
  },
  "luminance": 0.12251
}

Semantic roles & 50–950 ramp

primary
#4056CF
secondary
#D4CB97
accent
#CB45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4056CF

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

Preview Lab → · Contrast checker → · Palette generator →

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