#405DA5#405DA5

#405DA5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.2% C 0.120 H 265.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#405DA5
RGBrgb(64, 93, 165)
HSLhsl(223, 44%, 45%)
HSVhsv(223, 61%, 65%)
CMYKcmyk(61.2%, 43.6%, 0%, 35.3%)
CIE-LABlab(40.63, 12.32, -42.13)
CIE-LCHlch(40.63, 43.89, 286.30°)
OKLaboklab(49.24% -0.0091 -0.12)
OKLCHoklch(49.24% 0.12 265.7)
XYZxyz(12.8179, 11.6342, 37.1602)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DA5 #A58840
analogous
#4090A5 #405DA5 #5540A5
triadic
#405DA5 #A5405D #5DA540
tetradic
#405DA5 #A54090 #A58840 #40A555
square
#405DA5 #A54090 #A58840 #40A555
split-complementary
#405DA5 #A55540 #90A540
monochromatic
#1E2B4D #2F4479 #405DA5 #617CC2 #8DA1D3

Accessibility & contrast

On white

6.31
#405DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#405DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DA5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DA5#FFFFFF#000000##FFFFFF
##405DA51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A8
Deuteranopia (green-blind)
#2E5BA3
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405da5;
/* rgb */ color: rgb(64, 93, 165);
/* oklch */ color: oklch(49.2% 0.120 265.7);
Tailwind
colors: {
  custom: {
    50: '#7e8ac0',
    500: '#405da5',
    950: '#000000',
  },
}
SCSS
$custom: #405da5;
$custom-light: #7e8ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#405da5",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 165
  },
  "hsl": {
    "h": 222.772,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49242,
    "c": 0.12036,
    "h": 265.7
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#405DA5
secondary
#BEAD83
accent
#AF54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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