#405FA2#405FA2

#405FA2 is a mid, moderate blue. Relative luminance 0.119; OKLCH L 49.5% C 0.114 H 264.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#405FA2
RGBrgb(64, 95, 162)
HSLhsl(221, 43%, 44%)
HSVhsv(221, 60%, 64%)
CMYKcmyk(60.5%, 41.4%, 0%, 36.5%)
CIE-LABlab(41.03, 9.98, -39.71)
CIE-LCHlch(41.03, 40.95, 284.11°)
OKLaboklab(49.49% -0.0119 -0.1129)
OKLCHoklch(49.49% 0.114 264)
XYZxyz(12.7259, 11.8820, 35.7982)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA2 #A28340
analogous
#4090A2 #405FA2 #5240A2
triadic
#405FA2 #A2405F #5FA240
tetradic
#405FA2 #A24090 #A28340 #40A252
square
#405FA2 #A24090 #A28340 #40A252
split-complementary
#405FA2 #A25240 #90A240
monochromatic
#1D2C4A #2F4576 #405FA2 #5F7EC0 #8BA1D1

Accessibility & contrast

On white

6.22
#405FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FA2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA2#FFFFFF#000000##FFFFFF
##405FA21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#345DA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405fa2;
/* rgb */ color: rgb(64, 95, 162);
/* oklch */ color: oklch(49.5% 0.114 264.0);
Tailwind
colors: {
  custom: {
    50: '#7d8cbe',
    500: '#405fa2',
    950: '#000000',
  },
}
SCSS
$custom: #405fa2;
$custom-light: #7d8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa2",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 221.02,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49493,
    "c": 0.11353,
    "h": 264
  },
  "luminance": 0.11883
}

Semantic roles & 50–950 ramp

primary
#405FA2
secondary
#BCAA82
accent
#AB55D3
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #405FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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