#405BCC#405BCC

#405BCC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.6% C 0.178 H 269.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#405BCC
RGBrgb(64, 91, 204)
HSLhsl(228, 58%, 53%)
HSVhsv(228, 69%, 80%)
CMYKcmyk(68.6%, 55.4%, 0%, 20%)
CIE-LABlab(42.66, 27.49, -61.67)
CIE-LCHlch(42.66, 67.52, 294.03°)
OKLaboklab(51.61% -0.0027 -0.1775)
OKLCHoklch(51.61% 0.178 269.1)
XYZxyz(16.7508, 12.9302, 58.7280)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BCC #CCB140
analogous
#40A1CC #405BCC #6B40CC
triadic
#405BCC #CC405B #5BCC40
tetradic
#405BCC #CC40A1 #CCB140 #40CC6B
square
#405BCC #CC40A1 #CCB140 #40CC6B
split-complementary
#405BCC #CC6B40 #A1CC40
monochromatic
#1F2F73 #2C43A3 #405BCC #7084D9 #A1AEE6

Accessibility & contrast

On white

5.86
#405BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#405BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BCC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BCC#FFFFFF#000000##FFFFFF
##405BCC1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#00768A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405bcc;
/* rgb */ color: rgb(64, 91, 204);
/* oklch */ color: oklch(51.6% 0.178 269.1);
Tailwind
colors: {
  custom: {
    50: '#8589dc',
    500: '#405bcc',
    950: '#000000',
  },
}
SCSS
$custom: #405bcc;
$custom-light: #8589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#405bcc",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 228.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51605,
    "c": 0.17753,
    "h": 269.1
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#405BCC
secondary
#D2C795
accent
#C347E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BCC

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

Preview Lab → · Contrast checker → · Palette generator →

#405BCC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva