#405DCC#405DCC

#405DCC is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.0% C 0.175 H 268.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#405DCC
RGBrgb(64, 93, 204)
HSLhsl(228, 58%, 53%)
HSVhsv(228, 69%, 80%)
CMYKcmyk(68.6%, 54.4%, 0%, 20%)
CIE-LABlab(43.18, 26.22, -60.83)
CIE-LCHlch(43.18, 66.24, 293.32°)
OKLaboklab(52% -0.0044 -0.175)
OKLCHoklch(52% 0.175 268.6)
XYZxyz(16.9240, 13.2767, 58.7858)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DCC #CCAF40
analogous
#40A3CC #405DCC #6940CC
triadic
#405DCC #CC405D #5DCC40
tetradic
#405DCC #CC40A3 #CCAF40 #40CC69
square
#405DCC #CC40A3 #CCAF40 #40CC69
split-complementary
#405DCC #CC6940 #A3CC40
monochromatic
#1F3073 #2C44A3 #405DCC #7086D9 #A1AFE6

Accessibility & contrast

On white

5.74
#405DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#405DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DCC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DCC#FFFFFF#000000##FFFFFF
##405DCC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405dcc;
/* rgb */ color: rgb(64, 93, 204);
/* oklch */ color: oklch(52.0% 0.175 268.6);
Tailwind
colors: {
  custom: {
    50: '#858adc',
    500: '#405dcc',
    950: '#000000',
  },
}
SCSS
$custom: #405dcc;
$custom-light: #858adc;
$custom-dark: #000000;
JSON
{
  "hex": "#405dcc",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 227.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.17505,
    "h": 268.6
  },
  "luminance": 0.13278
}

Semantic roles & 50–950 ramp

primary
#405DCC
secondary
#D2C695
accent
#C147E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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