#405DA2#405DA2

#405DA2 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 49.0% C 0.116 H 265.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#405DA2
RGBrgb(64, 93, 162)
HSLhsl(222, 43%, 44%)
HSVhsv(222, 60%, 64%)
CMYKcmyk(60.5%, 42.6%, 0%, 36.5%)
CIE-LABlab(40.45, 11.26, -40.63)
CIE-LCHlch(40.45, 42.16, 285.49°)
OKLaboklab(49.05% -0.0097 -0.1156)
OKLCHoklch(49.05% 0.116 265.2)
XYZxyz(12.5481, 11.5263, 35.7390)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DA2 #A28540
analogous
#408EA2 #405DA2 #5440A2
triadic
#405DA2 #A2405D #5DA240
tetradic
#405DA2 #A2408E #A28540 #40A254
square
#405DA2 #A2408E #A28540 #40A254
split-complementary
#405DA2 #A25440 #8EA240
monochromatic
#1D2B4A #2F4476 #405DA2 #5F7CC0 #8BA0D1

Accessibility & contrast

On white

6.35
#405DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#405DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DA2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DA2#FFFFFF#000000##FFFFFF
##405DA21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A5
Deuteranopia (green-blind)
#315BA1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405da2;
/* rgb */ color: rgb(64, 93, 162);
/* oklch */ color: oklch(49.0% 0.116 265.2);
Tailwind
colors: {
  custom: {
    50: '#7d8abe',
    500: '#405da2',
    950: '#000000',
  },
}
SCSS
$custom: #405da2;
$custom-light: #7d8abe;
$custom-dark: #000000;
JSON
{
  "hex": "#405da2",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 222.245,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4905,
    "c": 0.11602,
    "h": 265.2
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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