#405173#405173

#405173 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.061 H 263.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#405173
RGBrgb(64, 81, 115)
HSLhsl(220, 28%, 35%)
HSVhsv(220, 44%, 45%)
CMYKcmyk(44.3%, 29.6%, 0%, 54.9%)
CIE-LABlab(34.42, 3.15, -21.54)
CIE-LCHlch(34.42, 21.77, 278.33°)
OKLaboklab(43.56% -0.0067 -0.0601)
OKLCHoklch(43.56% 0.061 263.6)
XYZxyz(8.1503, 8.2122, 17.3720)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405173 #736240
analogous
#406B73 #405173 #484073
triadic
#405173 #734051 #517340
tetradic
#405173 #73406B #736240 #407348
square
#405173 #73406B #736240 #407348
split-complementary
#405173 #734840 #6B7340
monochromatic
#141A24 #2A354C #405173 #566D9A #798DB4

Accessibility & contrast

On white

7.95
#405173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405173
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405173#FFFFFF#000000##FFFFFF
##4051731.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455474
Deuteranopia (green-blind)
#404F72
Tritanopia (blue-blind)
#2E585D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405173;
/* rgb */ color: rgb(64, 81, 115);
/* oklch */ color: oklch(43.6% 0.061 263.6);
Tailwind
colors: {
  custom: {
    50: '#77819b',
    500: '#405173',
    950: '#000000',
  },
}
SCSS
$custom: #405173;
$custom-light: #77819b;
$custom-dark: #000000;
JSON
{
  "hex": "#405173",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 115
  },
  "hsl": {
    "h": 220,
    "s": 28.492,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43563,
    "c": 0.06051,
    "h": 263.6
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#405173
secondary
#9F8F70
accent
#A463C5
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405173

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

Preview Lab → · Contrast checker → · Palette generator →

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