#405CA2#405CA2

#405CA2 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.8% C 0.117 H 265.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#405CA2
RGBrgb(64, 92, 162)
HSLhsl(223, 43%, 44%)
HSVhsv(223, 60%, 64%)
CMYKcmyk(60.5%, 43.2%, 0%, 36.5%)
CIE-LABlab(40.17, 11.90, -41.08)
CIE-LCHlch(40.17, 42.77, 286.16°)
OKLaboklab(48.83% -0.0086 -0.117)
OKLCHoklch(48.83% 0.117 265.8)
XYZxyz(12.4609, 11.3519, 35.7099)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA2 #A28640
analogous
#408DA2 #405CA2 #5540A2
triadic
#405CA2 #A2405C #5CA240
tetradic
#405CA2 #A2408D #A28640 #40A255
square
#405CA2 #A2408D #A28640 #40A255
split-complementary
#405CA2 #A25540 #8DA240
monochromatic
#1D2A4A #2F4376 #405CA2 #5F7BC0 #8B9FD1

Accessibility & contrast

On white

6.42
#405CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#405CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA2#FFFFFF#000000##FFFFFF
##405CA21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A5
Deuteranopia (green-blind)
#2F5BA1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca2;
/* rgb */ color: rgb(64, 92, 162);
/* oklch */ color: oklch(48.8% 0.117 265.8);
Tailwind
colors: {
  custom: {
    50: '#7d89be',
    500: '#405ca2',
    950: '#000000',
  },
}
SCSS
$custom: #405ca2;
$custom-light: #7d89be;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca2",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 222.857,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4883,
    "c": 0.11728,
    "h": 265.8
  },
  "luminance": 0.11353
}

Semantic roles & 50–950 ramp

primary
#405CA2
secondary
#BCAB82
accent
#AF55D3
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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