#405DA7#405DA7

#405DA7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.123 H 265.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#405DA7
RGBrgb(64, 93, 167)
HSLhsl(223, 45%, 45%)
HSVhsv(223, 62%, 65%)
CMYKcmyk(61.7%, 44.3%, 0%, 34.5%)
CIE-LABlab(40.75, 13.02, -43.13)
CIE-LCHlch(40.75, 45.05, 286.80°)
OKLaboklab(49.37% -0.0087 -0.1229)
OKLCHoklch(49.37% 0.123 265.9)
XYZxyz(13.0014, 11.7076, 38.1264)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DA7 #A78A40
analogous
#4090A7 #405DA7 #5640A7
triadic
#405DA7 #A7405D #5DA740
tetradic
#405DA7 #A74090 #A78A40 #40A756
square
#405DA7 #A74090 #A78A40 #40A756
split-complementary
#405DA7 #A75640 #90A740
monochromatic
#1E2C4F #2F447B #405DA7 #627DC3 #8EA1D4

Accessibility & contrast

On white

6.28
#405DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#405DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DA7
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DA7#FFFFFF#000000##FFFFFF
##405DA71.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#2C5CA5
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405da7;
/* rgb */ color: rgb(64, 93, 167);
/* oklch */ color: oklch(49.4% 0.123 265.9);
Tailwind
colors: {
  custom: {
    50: '#7e8ac1',
    500: '#405da7',
    950: '#000000',
  },
}
SCSS
$custom: #405da7;
$custom-light: #7e8ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#405da7",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 223.107,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49372,
    "c": 0.12326,
    "h": 265.9
  },
  "luminance": 0.11709
}

Semantic roles & 50–950 ramp

primary
#405DA7
secondary
#BFAE84
accent
#B054D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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