#404371#404371

#404371 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.077 H 279.5°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#404371
RGBrgb(64, 67, 113)
HSLhsl(236, 28%, 35%)
HSVhsv(236, 43%, 44%)
CMYKcmyk(43.4%, 40.7%, 0%, 55.7%)
CIE-LABlab(30.15, 11.68, -26.98)
CIE-LCHlch(30.15, 29.40, 293.40°)
OKLaboklab(40.23% 0.0127 -0.0759)
OKLCHoklch(40.23% 0.077 279.5)
XYZxyz(7.1013, 6.2962, 16.4607)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404371 #716E40
analogous
#405B71 #404371 #564071
triadic
#404371 #714043 #437140
tetradic
#404371 #71405B #716E40 #407156
square
#404371 #71405B #716E40 #407156
split-complementary
#404371 #715640 #5B7140
monochromatic
#141523 #2A2C4A #404371 #565A98 #797CB3

Accessibility & contrast

On white

9.29
#404371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#404371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404371
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404371#FFFFFF#000000##FFFFFF
##4043711.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#304570
Tritanopia (blue-blind)
#314C54
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404371;
/* rgb */ color: rgb(64, 67, 113);
/* oklch */ color: oklch(40.2% 0.077 279.5);
Tailwind
colors: {
  custom: {
    50: '#77779a',
    500: '#404371',
    950: '#000000',
  },
}
SCSS
$custom: #404371;
$custom-light: #77779a;
$custom-dark: #000000;
JSON
{
  "hex": "#404371",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 113
  },
  "hsl": {
    "h": 236.327,
    "s": 27.684,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40225,
    "c": 0.07697,
    "h": 279.5
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#404371
secondary
#9E9B6F
accent
#BE64C4
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #404371

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

Preview Lab → · Contrast checker → · Palette generator →

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