#405FA5#405FA5

#405FA5 is a mid, moderate blue. Relative luminance 0.120; OKLCH L 49.7% C 0.118 H 264.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#405FA5
RGBrgb(64, 95, 165)
HSLhsl(222, 44%, 45%)
HSVhsv(222, 61%, 65%)
CMYKcmyk(61.2%, 42.4%, 0%, 35.3%)
CIE-LABlab(41.20, 11.04, -41.22)
CIE-LCHlch(41.20, 42.67, 284.99°)
OKLaboklab(49.68% -0.0113 -0.1173)
OKLCHoklch(49.68% 0.118 264.5)
XYZxyz(12.9958, 11.9899, 37.2194)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA5 #A58640
analogous
#4092A5 #405FA5 #5340A5
triadic
#405FA5 #A5405F #5FA540
tetradic
#405FA5 #A54092 #A58640 #40A553
square
#405FA5 #A54092 #A58640 #40A553
split-complementary
#405FA5 #A55340 #92A540
monochromatic
#1E2C4D #2F4679 #405FA5 #617EC2 #8DA2D3

Accessibility & contrast

On white

6.18
#405FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405FA5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA5#FFFFFF#000000##FFFFFF
##405FA51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#325DA4
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405fa5;
/* rgb */ color: rgb(64, 95, 165);
/* oklch */ color: oklch(49.7% 0.118 264.5);
Tailwind
colors: {
  custom: {
    50: '#7e8cc0',
    500: '#405fa5',
    950: '#000000',
  },
}
SCSS
$custom: #405fa5;
$custom-light: #7e8cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa5",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 221.584,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49682,
    "c": 0.11787,
    "h": 264.5
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#405FA5
secondary
#BEAC83
accent
#AD54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #405FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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