#405FAB#405FAB

#405FAB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.127 H 265.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#405FAB
RGBrgb(64, 95, 171)
HSLhsl(223, 46%, 46%)
HSVhsv(223, 63%, 67%)
CMYKcmyk(62.6%, 44.4%, 0%, 32.9%)
CIE-LABlab(41.55, 13.15, -44.20)
CIE-LCHlch(41.55, 46.12, 286.57°)
OKLaboklab(50.07% -0.0101 -0.1261)
OKLCHoklch(50.07% 0.127 265.4)
XYZxyz(13.5547, 12.2135, 40.1633)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAB #AB8C40
analogous
#4094AB #405FAB #5640AB
triadic
#405FAB #AB405F #5FAB40
tetradic
#405FAB #AB4094 #AB8C40 #40AB56
square
#405FAB #AB4094 #AB8C40 #40AB56
split-complementary
#405FAB #AB5640 #94AB40
monochromatic
#1F2E52 #2F467E #405FAB #6380C5 #90A4D5

Accessibility & contrast

On white

6.10
#405FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#405FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAB
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAB#FFFFFF#000000##FFFFFF
##405FAB1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AE
Deuteranopia (green-blind)
#2B5DA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405fab;
/* rgb */ color: rgb(64, 95, 171);
/* oklch */ color: oklch(50.1% 0.127 265.4);
Tailwind
colors: {
  custom: {
    50: '#7f8cc4',
    500: '#405fab',
    950: '#000000',
  },
}
SCSS
$custom: #405fab;
$custom-light: #7f8cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#405fab",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 222.617,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50068,
    "c": 0.1265,
    "h": 265.4
  },
  "luminance": 0.12215
}

Semantic roles & 50–950 ramp

primary
#405FAB
secondary
#C1B086
accent
#AF53D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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