#405C95#405C95

#405C95 is a mid, moderate blue. Relative luminance 0.109; OKLCH L 48.0% C 0.098 H 263.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#405C95
RGBrgb(64, 92, 149)
HSLhsl(220, 40%, 42%)
HSVhsv(220, 57%, 58%)
CMYKcmyk(57%, 38.3%, 0%, 41.6%)
CIE-LABlab(39.43, 7.38, -34.47)
CIE-LCHlch(39.43, 35.25, 282.09°)
OKLaboklab(48.03% -0.0114 -0.0976)
OKLCHoklch(48.03% 0.098 263.3)
XYZxyz(11.3645, 10.9133, 29.9356)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C95 #957940
analogous
#408795 #405C95 #4F4095
triadic
#405C95 #95405C #5C9540
tetradic
#405C95 #954087 #957940 #40954F
square
#405C95 #954087 #957940 #40954F
split-complementary
#405C95 #954F40 #879540
monochromatic
#1B273F #2E426A #405C95 #5A79B8 #859CCB

Accessibility & contrast

On white

6.60
#405C95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#405C95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C95
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C95#FFFFFF#000000##FFFFFF
##405C951.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456197
Deuteranopia (green-blind)
#3A5994
Tritanopia (blue-blind)
#086971
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405c95;
/* rgb */ color: rgb(64, 92, 149);
/* oklch */ color: oklch(48.0% 0.098 263.3);
Tailwind
colors: {
  custom: {
    50: '#7b89b4',
    500: '#405c95',
    950: '#000000',
  },
}
SCSS
$custom: #405c95;
$custom-light: #7b89b4;
$custom-dark: #000000;
JSON
{
  "hex": "#405c95",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 149
  },
  "hsl": {
    "h": 220.235,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48025,
    "c": 0.09827,
    "h": 263.3
  },
  "luminance": 0.10914
}

Semantic roles & 50–950 ramp

primary
#405C95
secondary
#B5A27C
accent
#A858D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405C95

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

Preview Lab → · Contrast checker → · Palette generator →

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