#405DAB#405DAB

#405DAB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.129 H 266.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#405DAB
RGBrgb(64, 93, 171)
HSLhsl(224, 46%, 46%)
HSVhsv(224, 63%, 67%)
CMYKcmyk(62.6%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.99, 14.44, -45.11)
CIE-LCHlch(40.99, 47.36, 287.75°)
OKLaboklab(49.64% -0.008 -0.1288)
OKLCHoklch(49.64% 0.129 266.4)
XYZxyz(13.3769, 11.8578, 40.1040)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DAB #AB8E40
analogous
#4092AB #405DAB #5840AB
triadic
#405DAB #AB405D #5DAB40
tetradic
#405DAB #AB4092 #AB8E40 #40AB58
square
#405DAB #AB4092 #AB8E40 #40AB58
split-complementary
#405DAB #AB5840 #92AB40
monochromatic
#1F2D52 #2F457E #405DAB #637EC5 #90A3D5

Accessibility & contrast

On white

6.23
#405DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#405DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DAB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DAB#FFFFFF#000000##FFFFFF
##405DAB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AE
Deuteranopia (green-blind)
#275CA9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405dab;
/* rgb */ color: rgb(64, 93, 171);
/* oklch */ color: oklch(49.6% 0.129 266.4);
Tailwind
colors: {
  custom: {
    50: '#7f8ac4',
    500: '#405dab',
    950: '#000000',
  },
}
SCSS
$custom: #405dab;
$custom-light: #7f8ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#405dab",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 223.738,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49635,
    "c": 0.12901,
    "h": 266.4
  },
  "luminance": 0.11859
}

Semantic roles & 50–950 ramp

primary
#405DAB
secondary
#C1B186
accent
#B253D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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