#405FA0#405FA0

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

Color values

HEX#405FA0
RGBrgb(64, 95, 160)
HSLhsl(221, 43%, 44%)
HSVhsv(221, 60%, 63%)
CMYKcmyk(60%, 40.6%, 0%, 37.3%)
CIE-LABlab(40.91, 9.28, -38.70)
CIE-LCHlch(40.91, 39.80, 283.49°)
OKLaboklab(49.37% -0.0123 -0.1099)
OKLCHoklch(49.37% 0.111 263.6)
XYZxyz(12.5495, 11.8114, 34.8694)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA0 #A08140
analogous
#408FA0 #405FA0 #5140A0
triadic
#405FA0 #A0405F #5FA040
tetradic
#405FA0 #A0408F #A08140 #40A051
square
#405FA0 #A0408F #A08140 #40A051
split-complementary
#405FA0 #A05140 #8FA040
monochromatic
#1D2B49 #2F4574 #405FA0 #5E7EBF #8AA1D0

Accessibility & contrast

On white

6.25
#405FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405FA0
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA0#FFFFFF#000000##FFFFFF
##405FA01.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4365A3
Deuteranopia (green-blind)
#365C9F
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405fa0;
/* rgb */ color: rgb(64, 95, 160);
/* oklch */ color: oklch(49.4% 0.111 263.6);
Tailwind
colors: {
  custom: {
    50: '#7d8cbc',
    500: '#405fa0',
    950: '#000000',
  },
}
SCSS
$custom: #405fa0;
$custom-light: #7d8cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa0",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 160
  },
  "hsl": {
    "h": 220.625,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.11064,
    "h": 263.6
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

primary
#405FA0
secondary
#BBA881
accent
#AA55D3
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #405FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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