#4056CA#4056CA

#4056CA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.181 H 270.4°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#4056CA
RGBrgb(64, 86, 202)
HSLhsl(230, 57%, 52%)
HSVhsv(230, 68%, 79%)
CMYKcmyk(68.3%, 57.4%, 0%, 20.8%)
CIE-LABlab(41.23, 29.97, -62.83)
CIE-LCHlch(41.23, 69.61, 295.50°)
OKLaboklab(50.49% 0.0013 -0.181)
OKLCHoklch(50.49% 0.181 270.4)
XYZxyz(16.0992, 12.0083, 57.3351)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056CA #CAB440
analogous
#409BCA #4056CA #6F40CA
triadic
#4056CA #CA4056 #56CA40
tetradic
#4056CA #CA409B #CAB440 #40CA6F
square
#4056CA #CA409B #CAB440 #40CA6F
split-complementary
#4056CA #CA6F40 #9BCA40
monochromatic
#1F2C70 #2C3FA0 #4056CA #7080D7 #A0ABE5

Accessibility & contrast

On white

6.17
#4056CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4056CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056CA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056CA#FFFFFF#000000##FFFFFF
##4056CA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4056ca;
/* rgb */ color: rgb(64, 86, 202);
/* oklch */ color: oklch(50.5% 0.181 270.4);
Tailwind
colors: {
  custom: {
    50: '#8585db',
    500: '#4056ca',
    950: '#000000',
  },
}
SCSS
$custom: #4056ca;
$custom-light: #8585db;
$custom-dark: #000000;
JSON
{
  "hex": "#4056ca",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 230.435,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5049,
    "c": 0.181,
    "h": 270.4
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#4056CA
secondary
#D1C795
accent
#C848E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4056CA

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

Preview Lab → · Contrast checker → · Palette generator →

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