#404C8D#404C8D

#404C8D is a dark, moderate blue. Relative luminance 0.082; OKLCH L 44.0% C 0.107 H 273.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#404C8D
RGBrgb(64, 76, 141)
HSLhsl(231, 38%, 40%)
HSVhsv(231, 55%, 55%)
CMYKcmyk(54.6%, 46.1%, 0%, 44.7%)
CIE-LABlab(34.36, 15.02, -37.69)
CIE-LCHlch(34.36, 40.57, 291.73°)
OKLaboklab(43.97% 0.0062 -0.1072)
OKLCHoklch(43.97% 0.107 273.3)
XYZxyz(9.5050, 8.1813, 26.2724)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C8D #8D8140
analogous
#40738D #404C8D #5A408D
triadic
#404C8D #8D404C #4C8D40
tetradic
#404C8D #8D4073 #8D8140 #408D5A
square
#404C8D #8D4073 #8D8140 #408D5A
split-complementary
#404C8D #8D5A40 #738D40
monochromatic
#1A1F39 #2D3563 #404C8D #5766B3 #818CC6

Accessibility & contrast

On white

7.97
#404C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#404C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C8D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C8D#FFFFFF#000000##FFFFFF
##404C8D1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#274E8C
Tritanopia (blue-blind)
#1B5A65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #404c8d;
/* rgb */ color: rgb(64, 76, 141);
/* oklch */ color: oklch(44.0% 0.107 273.3);
Tailwind
colors: {
  custom: {
    50: '#7b7daf',
    500: '#404c8d',
    950: '#000000',
  },
}
SCSS
$custom: #404c8d;
$custom-light: #7b7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#404c8d",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 230.649,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43973,
    "c": 0.10736,
    "h": 273.3
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#404C8D
secondary
#B0A878
accent
#BC5ACE
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404C8D

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

Preview Lab → · Contrast checker → · Palette generator →

#404C8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva