#405F9D#405F9D

#405F9D is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.2% C 0.106 H 263.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#405F9D
RGBrgb(64, 95, 157)
HSLhsl(220, 42%, 43%)
HSVhsv(220, 59%, 62%)
CMYKcmyk(59.2%, 39.5%, 0%, 38.4%)
CIE-LABlab(40.75, 8.24, -37.18)
CIE-LCHlch(40.75, 38.08, 282.49°)
OKLaboklab(49.19% -0.013 -0.1055)
OKLCHoklch(49.19% 0.106 263)
XYZxyz(12.2903, 11.7077, 33.5039)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F9D #9D7E40
analogous
#408D9D #405F9D #4F409D
triadic
#405F9D #9D405F #5F9D40
tetradic
#405F9D #9D408D #9D7E40 #409D4F
square
#405F9D #9D408D #9D7E40 #409D4F
split-complementary
#405F9D #9D4F40 #8D9D40
monochromatic
#1D2A46 #2E4572 #405F9D #5D7DBD #89A0CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405F9D#FFFFFF#000000##FFFFFF
##405F9D1.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)
#45659F
Deuteranopia (green-blind)
#395C9C
Tritanopia (blue-blind)
#006D76
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405f9d;
/* rgb */ color: rgb(64, 95, 157);
/* oklch */ color: oklch(49.2% 0.106 263.0);
Tailwind
colors: {
  custom: {
    50: '#7d8cba',
    500: '#405f9d',
    950: '#000000',
  },
}
SCSS
$custom: #405f9d;
$custom-light: #7d8cba;
$custom-dark: #000000;
JSON
{
  "hex": "#405f9d",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 220,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49185,
    "c": 0.1063,
    "h": 263
  },
  "luminance": 0.11709
}

Semantic roles & 50–950 ramp

primary
#405F9D
secondary
#B9A67F
accent
#A956D2
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #405F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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