#405A99#405A99

#405A99 is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.8% C 0.107 H 265.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#405A99
RGBrgb(64, 90, 153)
HSLhsl(222, 41%, 43%)
HSVhsv(222, 58%, 60%)
CMYKcmyk(58.2%, 41.2%, 0%, 40%)
CIE-LABlab(39.07, 10.05, -37.45)
CIE-LCHlch(39.07, 38.77, 285.02°)
OKLaboklab(47.82% -0.0081 -0.1063)
OKLCHoklch(47.82% 0.107 265.6)
XYZxyz(11.5183, 10.7013, 31.5894)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A99 #997F40
analogous
#408699 #405A99 #524099
triadic
#405A99 #99405A #5A9940
tetradic
#405A99 #994086 #997F40 #409952
square
#405A99 #994086 #997F40 #409952
split-complementary
#405A99 #995240 #869940
monochromatic
#1C2743 #2E416E #405A99 #5C77BB #879BCD

Accessibility & contrast

On white

6.69
#405A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#405A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405A99
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A99#FFFFFF#000000##FFFFFF
##405A991.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F609B
Deuteranopia (green-blind)
#345898
Tritanopia (blue-blind)
#006872
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405a99;
/* rgb */ color: rgb(64, 90, 153);
/* oklch */ color: oklch(47.8% 0.107 265.6);
Tailwind
colors: {
  custom: {
    50: '#7c88b7',
    500: '#405a99',
    950: '#000000',
  },
}
SCSS
$custom: #405a99;
$custom-light: #7c88b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405a99",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 153
  },
  "hsl": {
    "h": 222.472,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47818,
    "c": 0.10664,
    "h": 265.6
  },
  "luminance": 0.10702
}

Semantic roles & 50–950 ramp

primary
#405A99
secondary
#B7A67E
accent
#AD57D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405A99

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

Preview Lab → · Contrast checker → · Palette generator →

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