#405CAC#405CAC

#405CAC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.132 H 267.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#405CAC
RGBrgb(64, 92, 172)
HSLhsl(224, 46%, 46%)
HSVhsv(224, 63%, 67%)
CMYKcmyk(62.8%, 46.5%, 0%, 32.5%)
CIE-LABlab(40.77, 15.44, -46.05)
CIE-LCHlch(40.77, 48.57, 288.53°)
OKLaboklab(49.49% -0.0068 -0.1315)
OKLCHoklch(49.49% 0.132 267)
XYZxyz(13.3853, 11.7217, 40.5788)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CAC #AC9040
analogous
#4092AC #405CAC #5A40AC
triadic
#405CAC #AC405C #5CAC40
tetradic
#405CAC #AC4092 #AC9040 #40AC5A
square
#405CAC #AC4092 #AC9040 #40AC5A
split-complementary
#405CAC #AC5A40 #92AC40
monochromatic
#1F2C53 #2F447F #405CAC #647DC5 #91A3D6

Accessibility & contrast

On white

6.28
#405CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#405CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CAC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CAC#FFFFFF#000000##FFFFFF
##405CAC1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AF
Deuteranopia (green-blind)
#235CAA
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405cac;
/* rgb */ color: rgb(64, 92, 172);
/* oklch */ color: oklch(49.5% 0.132 267.0);
Tailwind
colors: {
  custom: {
    50: '#7f89c5',
    500: '#405cac',
    950: '#000000',
  },
}
SCSS
$custom: #405cac;
$custom-light: #7f89c5;
$custom-dark: #000000;
JSON
{
  "hex": "#405cac",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 224.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49488,
    "c": 0.13172,
    "h": 267
  },
  "luminance": 0.11723
}

Semantic roles & 50–950 ramp

primary
#405CAC
secondary
#C1B287
accent
#B352D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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