#405FA1#405FA1

#405FA1 is a mid, moderate blue. Relative luminance 0.118; OKLCH L 49.4% C 0.112 H 263.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#405FA1
RGBrgb(64, 95, 161)
HSLhsl(221, 43%, 44%)
HSVhsv(221, 60%, 63%)
CMYKcmyk(60.2%, 41%, 0%, 36.9%)
CIE-LABlab(40.97, 9.63, -39.21)
CIE-LCHlch(40.97, 40.38, 283.80°)
OKLaboklab(49.43% -0.0121 -0.1114)
OKLCHoklch(49.43% 0.112 263.8)
XYZxyz(12.6374, 11.8466, 35.3320)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA1 #A18240
analogous
#4090A1 #405FA1 #5240A1
triadic
#405FA1 #A1405F #5FA140
tetradic
#405FA1 #A14090 #A18240 #40A152
square
#405FA1 #A14090 #A18240 #40A152
split-complementary
#405FA1 #A15240 #90A140
monochromatic
#1D2B49 #2F4575 #405FA1 #5F7EBF #8BA1D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405FA1#FFFFFF#000000##FFFFFF
##405FA11.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)
#4265A4
Deuteranopia (green-blind)
#355CA0
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405fa1;
/* rgb */ color: rgb(64, 95, 161);
/* oklch */ color: oklch(49.4% 0.112 263.8);
Tailwind
colors: {
  custom: {
    50: '#7d8cbd',
    500: '#405fa1',
    950: '#000000',
  },
}
SCSS
$custom: #405fa1;
$custom-light: #7d8cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa1",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 220.825,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49431,
    "c": 0.11209,
    "h": 263.8
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#405FA1
secondary
#BCA981
accent
#AB55D3
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #405FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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