#405171#405171

#405171 is a dark, muted blue. Relative luminance 0.082; OKLCH L 43.5% C 0.057 H 262.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#405171
RGBrgb(64, 81, 113)
HSLhsl(219, 28%, 35%)
HSVhsv(219, 43%, 44%)
CMYKcmyk(43.4%, 28.3%, 0%, 55.7%)
CIE-LABlab(34.33, 2.53, -20.44)
CIE-LCHlch(34.33, 20.60, 277.04°)
OKLaboklab(43.46% -0.0074 -0.057)
OKLCHoklch(43.46% 0.057 262.6)
XYZxyz(8.0365, 8.1667, 16.7724)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405171 #716040
analogous
#406A71 #405171 #484071
triadic
#405171 #714051 #517140
tetradic
#405171 #71406A #716040 #407148
square
#405171 #71406A #716040 #407148
split-complementary
#405171 #714840 #6A7140
monochromatic
#141923 #2A354A #405171 #566D98 #798DB3

Accessibility & contrast

On white

7.97
#405171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#405171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405171
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405171#FFFFFF#000000##FFFFFF
##4051711.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465372
Deuteranopia (green-blind)
#404F70
Tritanopia (blue-blind)
#2F585C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405171;
/* rgb */ color: rgb(64, 81, 113);
/* oklch */ color: oklch(43.5% 0.057 262.6);
Tailwind
colors: {
  custom: {
    50: '#77819a',
    500: '#405171',
    950: '#000000',
  },
}
SCSS
$custom: #405171;
$custom-light: #77819a;
$custom-dark: #000000;
JSON
{
  "hex": "#405171",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 113
  },
  "hsl": {
    "h": 219.184,
    "s": 27.684,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43459,
    "c": 0.05744,
    "h": 262.6
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#405171
secondary
#9E8E6F
accent
#A364C4
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405171

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

Preview Lab → · Contrast checker → · Palette generator →

#405171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva