#405F8D#405F8D

#405F8D is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.3% C 0.083 H 258.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#405F8D
RGBrgb(64, 95, 141)
HSLhsl(216, 38%, 40%)
HSVhsv(216, 55%, 55%)
CMYKcmyk(54.6%, 32.6%, 0%, 44.7%)
CIE-LABlab(39.91, 2.76, -28.90)
CIE-LCHlch(39.91, 29.04, 275.46°)
OKLaboklab(48.26% -0.0172 -0.0814)
OKLCHoklch(48.26% 0.083 258.1)
XYZxyz(11.0126, 11.1967, 26.7750)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F8D #8D6E40
analogous
#40858D #405F8D #47408D
triadic
#405F8D #8D405F #5F8D40
tetradic
#405F8D #8D4085 #8D6E40 #408D47
square
#405F8D #8D4085 #8D6E40 #408D47
split-complementary
#405F8D #8D4740 #858D40
monochromatic
#1A2639 #2D4363 #405F8D #577CB3 #819DC6

Accessibility & contrast

On white

6.48
#405F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#405F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405F8D
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F8D#FFFFFF#000000##FFFFFF
##405F8D1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D628F
Deuteranopia (green-blind)
#435B8C
Tritanopia (blue-blind)
#16696F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405f8d;
/* rgb */ color: rgb(64, 95, 141);
/* oklch */ color: oklch(48.3% 0.083 258.1);
Tailwind
colors: {
  custom: {
    50: '#7a8cae',
    500: '#405f8d',
    950: '#000000',
  },
}
SCSS
$custom: #405f8d;
$custom-light: #7a8cae;
$custom-dark: #000000;
JSON
{
  "hex": "#405f8d",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 141
  },
  "hsl": {
    "h": 215.844,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4826,
    "c": 0.08317,
    "h": 258.1
  },
  "luminance": 0.11197
}

Semantic roles & 50–950 ramp

primary
#405F8D
secondary
#B09A78
accent
#9F5ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0C10
muted
#7C7D7F

Preview Lab

Preview with #405F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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