#405DCF#405DCF

#405DCF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.179 H 268.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#405DCF
RGBrgb(64, 93, 207)
HSLhsl(228, 60%, 53%)
HSVhsv(228, 69%, 81%)
CMYKcmyk(69.1%, 55.1%, 0%, 18.8%)
CIE-LABlab(43.39, 27.29, -62.20)
CIE-LCHlch(43.39, 67.93, 293.69°)
OKLaboklab(52.23% -0.0042 -0.179)
OKLCHoklch(52.23% 0.179 268.7)
XYZxyz(17.2873, 13.4220, 60.6990)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DCF #CFB240
analogous
#40A5CF #405DCF #6A40CF
triadic
#405DCF #CF405D #5DCF40
tetradic
#405DCF #CF40A5 #CFB240 #40CF6A
square
#405DCF #CF40A5 #CFB240 #40CF6A
split-complementary
#405DCF #CF6A40 #A5CF40
monochromatic
#1E3077 #2A44A8 #405DCF #7186DB #A2B0E8

Accessibility & contrast

On white

5.70
#405DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#405DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DCF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DCF#FFFFFF#000000##FFFFFF
##405DCF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#0060CD
Tritanopia (blue-blind)
#00798D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405dcf;
/* rgb */ color: rgb(64, 93, 207);
/* oklch */ color: oklch(52.2% 0.179 268.7);
Tailwind
colors: {
  custom: {
    50: '#868ade',
    500: '#405dcf',
    950: '#000000',
  },
}
SCSS
$custom: #405dcf;
$custom-light: #868ade;
$custom-dark: #000000;
JSON
{
  "hex": "#405dcf",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 227.832,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52225,
    "c": 0.1791,
    "h": 268.7
  },
  "luminance": 0.13424
}

Semantic roles & 50–950 ramp

primary
#405DCF
secondary
#D4C897
accent
#C345E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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