#405172#405172

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

Color values

HEX#405172
RGBrgb(64, 81, 114)
HSLhsl(220, 28%, 35%)
HSVhsv(220, 44%, 45%)
CMYKcmyk(43.9%, 28.9%, 0%, 55.3%)
CIE-LABlab(34.37, 2.84, -20.99)
CIE-LCHlch(34.37, 21.18, 277.70°)
OKLaboklab(43.51% -0.007 -0.0585)
OKLCHoklch(43.51% 0.059 263.2)
XYZxyz(8.0931, 8.1893, 17.0706)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405172 #726140
analogous
#406A72 #405172 #484072
triadic
#405172 #724051 #517240
tetradic
#405172 #72406A #726140 #407248
square
#405172 #72406A #726140 #407248
split-complementary
#405172 #724840 #6A7240
monochromatic
#141924 #2A354B #405172 #566D99 #798DB4

Accessibility & contrast

On white

7.96
#405172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#405172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405172
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405172#FFFFFF#000000##FFFFFF
##4051721.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455373
Deuteranopia (green-blind)
#404F71
Tritanopia (blue-blind)
#2F585D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405172;
/* rgb */ color: rgb(64, 81, 114);
/* oklch */ color: oklch(43.5% 0.059 263.2);
Tailwind
colors: {
  custom: {
    50: '#77819a',
    500: '#405172',
    950: '#000000',
  },
}
SCSS
$custom: #405172;
$custom-light: #77819a;
$custom-dark: #000000;
JSON
{
  "hex": "#405172",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 219.6,
    "s": 28.09,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43511,
    "c": 0.05897,
    "h": 263.2
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#405172
secondary
#9F8E6F
accent
#A363C4
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405172

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

Preview Lab → · Contrast checker → · Palette generator →

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