#405DAA#405DAA

#405DAA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.128 H 266.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#405DAA
RGBrgb(64, 93, 170)
HSLhsl(224, 45%, 46%)
HSVhsv(224, 62%, 67%)
CMYKcmyk(62.4%, 45.3%, 0%, 33.3%)
CIE-LABlab(40.93, 14.08, -44.61)
CIE-LCHlch(40.93, 46.78, 287.52°)
OKLaboklab(49.57% -0.0082 -0.1273)
OKLCHoklch(49.57% 0.128 266.3)
XYZxyz(13.2819, 11.8198, 39.6039)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DAA #AA8D40
analogous
#4092AA #405DAA #5840AA
triadic
#405DAA #AA405D #5DAA40
tetradic
#405DAA #AA4092 #AA8D40 #40AA58
square
#405DAA #AA4092 #AA8D40 #40AA58
split-complementary
#405DAA #AA5840 #92AA40
monochromatic
#1F2C51 #2F457E #405DAA #637EC4 #8FA2D5

Accessibility & contrast

On white

6.24
#405DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#405DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DAA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DAA#FFFFFF#000000##FFFFFF
##405DAA1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AD
Deuteranopia (green-blind)
#285CA8
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405daa;
/* rgb */ color: rgb(64, 93, 170);
/* oklch */ color: oklch(49.6% 0.128 266.3);
Tailwind
colors: {
  custom: {
    50: '#7f8ac4',
    500: '#405daa',
    950: '#000000',
  },
}
SCSS
$custom: #405daa;
$custom-light: #7f8ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#405daa",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 170
  },
  "hsl": {
    "h": 223.585,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49569,
    "c": 0.12757,
    "h": 266.3
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#405DAA
secondary
#C0B086
accent
#B153D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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