#405FA6#405FA6

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

Color values

HEX#405FA6
RGBrgb(64, 95, 166)
HSLhsl(222, 44%, 45%)
HSVhsv(222, 61%, 65%)
CMYKcmyk(61.4%, 42.8%, 0%, 34.9%)
CIE-LABlab(41.26, 11.39, -41.72)
CIE-LCHlch(41.26, 43.25, 285.27°)
OKLaboklab(49.75% -0.0111 -0.1188)
OKLCHoklch(49.75% 0.119 264.7)
XYZxyz(13.0871, 12.0265, 37.7007)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA6 #A68740
analogous
#4092A6 #405FA6 #5440A6
triadic
#405FA6 #A6405F #5FA640
tetradic
#405FA6 #A64092 #A68740 #40A654
square
#405FA6 #A64092 #A68740 #40A654
split-complementary
#405FA6 #A65440 #92A640
monochromatic
#1E2C4E #2F467A #405FA6 #617FC2 #8DA2D3

Accessibility & contrast

On white

6.17
#405FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#405FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FA6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA6#FFFFFF#000000##FFFFFF
##405FA61.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F66A9
Deuteranopia (green-blind)
#315DA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405fa6;
/* rgb */ color: rgb(64, 95, 166);
/* oklch */ color: oklch(49.7% 0.119 264.7);
Tailwind
colors: {
  custom: {
    50: '#7e8cc1',
    500: '#405fa6',
    950: '#000000',
  },
}
SCSS
$custom: #405fa6;
$custom-light: #7e8cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa6",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 221.765,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49745,
    "c": 0.11931,
    "h": 264.7
  },
  "luminance": 0.12028
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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