#405D9A#405D9A

#405D9A is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.6% C 0.104 H 263.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#405D9A
RGBrgb(64, 93, 154)
HSLhsl(221, 41%, 43%)
HSVhsv(221, 58%, 60%)
CMYKcmyk(58.4%, 39.6%, 0%, 39.6%)
CIE-LABlab(40.00, 8.47, -36.58)
CIE-LCHlch(40.00, 37.54, 283.04°)
OKLaboklab(48.55% -0.0114 -0.1037)
OKLCHoklch(48.55% 0.104 263.7)
XYZxyz(11.8594, 11.2508, 32.1123)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D9A #9A7D40
analogous
#408A9A #405D9A #50409A
triadic
#405D9A #9A405D #5D9A40
tetradic
#405D9A #9A408A #9A7D40 #409A50
square
#405D9A #9A408A #9A7D40 #409A50
split-complementary
#405D9A #9A5040 #8A9A40
monochromatic
#1C2944 #2E436F #405D9A #5C7BBB #879ECD

Accessibility & contrast

On white

6.46
#405D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#405D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405D9A
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D9A#FFFFFF#000000##FFFFFF
##405D9A1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43639C
Deuteranopia (green-blind)
#385A99
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405d9a;
/* rgb */ color: rgb(64, 93, 154);
/* oklch */ color: oklch(48.6% 0.104 263.7);
Tailwind
colors: {
  custom: {
    50: '#7c8ab8',
    500: '#405d9a',
    950: '#000000',
  },
}
SCSS
$custom: #405d9a;
$custom-light: #7c8ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#405d9a",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 154
  },
  "hsl": {
    "h": 220.667,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48553,
    "c": 0.10436,
    "h": 263.7
  },
  "luminance": 0.11252
}

Semantic roles & 50–950 ramp

primary
#405D9A
secondary
#B8A57E
accent
#AA57D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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