#405DCB#405DCB

#405DCB is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.9% C 0.174 H 268.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#405DCB
RGBrgb(64, 93, 203)
HSLhsl(227, 57%, 52%)
HSVhsv(227, 68%, 80%)
CMYKcmyk(68.5%, 54.2%, 0%, 20.4%)
CIE-LABlab(43.11, 25.86, -60.36)
CIE-LCHlch(43.11, 65.67, 293.19°)
OKLaboklab(51.92% -0.0044 -0.1736)
OKLCHoklch(51.92% 0.174 268.5)
XYZxyz(16.8045, 13.2288, 58.1562)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DCB #CBAE40
analogous
#40A3CB #405DCB #6840CB
triadic
#405DCB #CB405D #5DCB40
tetradic
#405DCB #CB40A3 #CBAE40 #40CB68
square
#405DCB #CB40A3 #CBAE40 #40CB68
split-complementary
#405DCB #CB6840 #A3CB40
monochromatic
#1F3072 #2C45A2 #405DCB #7086D8 #A0AFE5

Accessibility & contrast

On white

5.76
#405DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#405DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DCB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DCB#FFFFFF#000000##FFFFFF
##405DCB1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026CCF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405dcb;
/* rgb */ color: rgb(64, 93, 203);
/* oklch */ color: oklch(51.9% 0.174 268.5);
Tailwind
colors: {
  custom: {
    50: '#858adc',
    500: '#405dcb',
    950: '#000000',
  },
}
SCSS
$custom: #405dcb;
$custom-light: #858adc;
$custom-dark: #000000;
JSON
{
  "hex": "#405dcb",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 227.482,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5192,
    "c": 0.17371,
    "h": 268.5
  },
  "luminance": 0.1323
}

Semantic roles & 50–950 ramp

primary
#405DCB
secondary
#D2C595
accent
#C147E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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