#404173#404173

#404173 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.083 H 281.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#404173
RGBrgb(64, 65, 115)
HSLhsl(239, 28%, 35%)
HSVhsv(239, 44%, 45%)
CMYKcmyk(44.3%, 43.5%, 0%, 54.9%)
CIE-LABlab(29.68, 13.65, -28.97)
CIE-LCHlch(29.68, 32.03, 295.22°)
OKLaboklab(39.91% 0.016 -0.0817)
OKLCHoklch(39.91% 0.083 281.1)
XYZxyz(7.0983, 6.1081, 17.0213)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404173 #737240
analogous
#405A73 #404173 #594073
triadic
#404173 #734041 #417340
tetradic
#404173 #73405A #737240 #407359
square
#404173 #73405A #737240 #407359
split-complementary
#404173 #735940 #5A7340
monochromatic
#141524 #2A2B4C #404173 #56579A #797AB4

Accessibility & contrast

On white

9.45
#404173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#404173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404173
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404173#FFFFFF#000000##FFFFFF
##4041731.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4875
Deuteranopia (green-blind)
#2C4472
Tritanopia (blue-blind)
#304B54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #404173;
/* rgb */ color: rgb(64, 65, 115);
/* oklch */ color: oklch(39.9% 0.083 281.1);
Tailwind
colors: {
  custom: {
    50: '#78759b',
    500: '#404173',
    950: '#000000',
  },
}
SCSS
$custom: #404173;
$custom-light: #78759b;
$custom-dark: #000000;
JSON
{
  "hex": "#404173",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 115
  },
  "hsl": {
    "h": 238.824,
    "s": 28.492,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39907,
    "c": 0.08329,
    "h": 281.1
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#404173
secondary
#9F9E70
accent
#C363C5
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #404173

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

Preview Lab → · Contrast checker → · Palette generator →

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