#405C96#405C96

#405C96 is a mid, moderate blue. Relative luminance 0.109; OKLCH L 48.1% C 0.100 H 263.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#405C96
RGBrgb(64, 92, 150)
HSLhsl(220, 40%, 42%)
HSVhsv(220, 57%, 59%)
CMYKcmyk(57.3%, 38.7%, 0%, 41.2%)
CIE-LABlab(39.49, 7.73, -34.99)
CIE-LCHlch(39.49, 35.83, 282.45°)
OKLaboklab(48.09% -0.0111 -0.0991)
OKLCHoklch(48.09% 0.1 263.6)
XYZxyz(11.4446, 10.9454, 30.3578)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C96 #967A40
analogous
#408796 #405C96 #4F4096
triadic
#405C96 #96405C #5C9640
tetradic
#405C96 #964087 #967A40 #40964F
square
#405C96 #964087 #967A40 #40964F
split-complementary
#405C96 #964F40 #879640
monochromatic
#1B2740 #2E426B #405C96 #5A79B9 #859CCB

Accessibility & contrast

On white

6.58
#405C96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#405C96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C96
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C96#FFFFFF#000000##FFFFFF
##405C961.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446198
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#056972
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405c96;
/* rgb */ color: rgb(64, 92, 150);
/* oklch */ color: oklch(48.1% 0.100 263.6);
Tailwind
colors: {
  custom: {
    50: '#7c89b5',
    500: '#405c96',
    950: '#000000',
  },
}
SCSS
$custom: #405c96;
$custom-light: #7c89b5;
$custom-dark: #000000;
JSON
{
  "hex": "#405c96",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 150
  },
  "hsl": {
    "h": 220.465,
    "s": 40.187,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48085,
    "c": 0.09974,
    "h": 263.6
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#405C96
secondary
#B6A37C
accent
#A958D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405C96

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

Preview Lab → · Contrast checker → · Palette generator →

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