#404064#404064

#404064 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.061 H 283.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#404064
RGBrgb(64, 64, 100)
HSLhsl(240, 22%, 32%)
HSVhsv(240, 36%, 39%)
CMYKcmyk(36%, 36%, 0%, 60.8%)
CIE-LABlab(28.58, 9.62, -21.16)
CIE-LCHlch(28.58, 23.25, 294.45°)
OKLaboklab(38.8% 0.0139 -0.059)
OKLCHoklch(38.8% 0.061 283.2)
XYZxyz(6.2474, 5.6767, 12.8207)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404064 #646440
analogous
#405264 #404064 #524064
triadic
#404064 #644040 #406440
tetradic
#404064 #644052 #646440 #406452
square
#404064 #644052 #646440 #406452
split-complementary
#404064 #645240 #526440
monochromatic
#101019 #28283F #404064 #585889 #7777A8

Accessibility & contrast

On white

9.83
#404064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#404064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404064
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404064#FFFFFF#000000##FFFFFF
##4040641.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354565
Deuteranopia (green-blind)
#344263
Tritanopia (blue-blind)
#37474D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #404064;
/* rgb */ color: rgb(64, 64, 100);
/* oklch */ color: oklch(38.8% 0.061 283.2);
Tailwind
colors: {
  custom: {
    50: '#767490',
    500: '#404064',
    950: '#000000',
  },
}
SCSS
$custom: #404064;
$custom-light: #767490;
$custom-dark: #000000;
JSON
{
  "hex": "#404064",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 100
  },
  "hsl": {
    "h": 240,
    "s": 21.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38798,
    "c": 0.06065,
    "h": 283.2
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#404064
secondary
#93936C
accent
#BE69BE
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080C
muted
#7B7B7D

Preview Lab

Preview with #404064

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

Preview Lab → · Contrast checker → · Palette generator →

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