#405DAF#405DAF

#405DAF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.135 H 266.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#405DAF
RGBrgb(64, 93, 175)
HSLhsl(224, 46%, 47%)
HSVhsv(224, 63%, 69%)
CMYKcmyk(63.4%, 46.9%, 0%, 31.4%)
CIE-LABlab(41.24, 15.86, -47.07)
CIE-LCHlch(41.24, 49.67, 288.62°)
OKLaboklab(49.9% -0.0074 -0.1345)
OKLCHoklch(49.9% 0.135 266.9)
XYZxyz(13.7639, 12.0126, 42.1425)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DAF #AF9240
analogous
#4095AF #405DAF #5A40AF
triadic
#405DAF #AF405D #5DAF40
tetradic
#405DAF #AF4095 #AF9240 #40AF5A
square
#405DAF #AF4095 #AF9240 #40AF5A
split-complementary
#405DAF #AF5A40 #95AF40
monochromatic
#1F2D55 #304582 #405DAF #657FC7 #92A4D7

Accessibility & contrast

On white

6.17
#405DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#405DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DAF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DAF#FFFFFF#000000##FFFFFF
##405DAF1.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)
#3567B2
Deuteranopia (green-blind)
#215DAD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405daf;
/* rgb */ color: rgb(64, 93, 175);
/* oklch */ color: oklch(49.9% 0.135 266.9);
Tailwind
colors: {
  custom: {
    50: '#808ac7',
    500: '#405daf',
    950: '#000000',
  },
}
SCSS
$custom: #405daf;
$custom-light: #808ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#405daf",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 175
  },
  "hsl": {
    "h": 224.324,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.13473,
    "h": 266.9
  },
  "luminance": 0.12014
}

Semantic roles & 50–950 ramp

primary
#405DAF
secondary
#C3B388
accent
#B452D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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