#405B95#405B95

#405B95 is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.8% C 0.099 H 264.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#405B95
RGBrgb(64, 91, 149)
HSLhsl(221, 40%, 42%)
HSVhsv(221, 57%, 58%)
CMYKcmyk(57%, 38.9%, 0%, 41.6%)
CIE-LABlab(39.14, 8.02, -34.94)
CIE-LCHlch(39.14, 35.85, 282.93°)
OKLaboklab(47.8% -0.0102 -0.099)
OKLCHoklch(47.8% 0.099 264.1)
XYZxyz(11.2784, 10.7412, 29.9069)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B95 #957A40
analogous
#408695 #405B95 #504095
triadic
#405B95 #95405B #5B9540
tetradic
#405B95 #954086 #957A40 #409550
square
#405B95 #954086 #957A40 #409550
split-complementary
#405B95 #955040 #869540
monochromatic
#1B273F #2E416A #405B95 #5A78B8 #859BCB

Accessibility & contrast

On white

6.67
#405B95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#405B95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405B95
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B95#FFFFFF#000000##FFFFFF
##405B951.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436097
Deuteranopia (green-blind)
#395994
Tritanopia (blue-blind)
#096871
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405b95;
/* rgb */ color: rgb(64, 91, 149);
/* oklch */ color: oklch(47.8% 0.099 264.1);
Tailwind
colors: {
  custom: {
    50: '#7b89b4',
    500: '#405b95',
    950: '#000000',
  },
}
SCSS
$custom: #405b95;
$custom-light: #7b89b4;
$custom-dark: #000000;
JSON
{
  "hex": "#405b95",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 149
  },
  "hsl": {
    "h": 220.941,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47799,
    "c": 0.09949,
    "h": 264.1
  },
  "luminance": 0.10742
}

Semantic roles & 50–950 ramp

primary
#405B95
secondary
#B5A37C
accent
#AA58D0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405B95

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

Preview Lab → · Contrast checker → · Palette generator →

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