#405CA1#405CA1

#405CA1 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.8% C 0.116 H 265.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#405CA1
RGBrgb(64, 92, 161)
HSLhsl(223, 43%, 44%)
HSVhsv(223, 60%, 63%)
CMYKcmyk(60.2%, 42.9%, 0%, 36.9%)
CIE-LABlab(40.11, 11.55, -40.58)
CIE-LCHlch(40.11, 42.19, 285.89°)
OKLaboklab(48.77% -0.0088 -0.1155)
OKLCHoklch(48.77% 0.116 265.7)
XYZxyz(12.3723, 11.3165, 35.2436)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA1 #A18540
analogous
#408DA1 #405CA1 #5540A1
triadic
#405CA1 #A1405C #5CA140
tetradic
#405CA1 #A1408D #A18540 #40A155
square
#405CA1 #A1408D #A18540 #40A155
split-complementary
#405CA1 #A15540 #8DA140
monochromatic
#1D2A49 #2F4375 #405CA1 #5F7BBF #8B9FD1

Accessibility & contrast

On white

6.44
#405CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#405CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA1#FFFFFF#000000##FFFFFF
##405CA11.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E63A4
Deuteranopia (green-blind)
#305AA0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405ca1;
/* rgb */ color: rgb(64, 92, 161);
/* oklch */ color: oklch(48.8% 0.116 265.7);
Tailwind
colors: {
  custom: {
    50: '#7d89bd',
    500: '#405ca1',
    950: '#000000',
  },
}
SCSS
$custom: #405ca1;
$custom-light: #7d89bd;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca1",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 161
  },
  "hsl": {
    "h": 222.68,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48766,
    "c": 0.11582,
    "h": 265.7
  },
  "luminance": 0.11317
}

Semantic roles & 50–950 ramp

primary
#405CA1
secondary
#BCAB81
accent
#AF55D3
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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