#404C8F#404C8F

#404C8F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 44.1% C 0.110 H 273.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#404C8F
RGBrgb(64, 76, 143)
HSLhsl(231, 38%, 41%)
HSVhsv(231, 55%, 56%)
CMYKcmyk(55.2%, 46.9%, 0%, 43.9%)
CIE-LABlab(34.48, 15.71, -38.71)
CIE-LCHlch(34.48, 41.78, 292.09°)
OKLaboklab(44.11% 0.0066 -0.1102)
OKLCHoklch(44.11% 0.11 273.4)
XYZxyz(9.6551, 8.2414, 27.0632)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C8F #8F8340
analogous
#40738F #404C8F #5B408F
triadic
#404C8F #8F404C #4C8F40
tetradic
#404C8F #8F4073 #8F8340 #408F5B
square
#404C8F #8F4073 #8F8340 #408F5B
split-complementary
#404C8F #8F5B40 #738F40
monochromatic
#1A1F3A #2D3665 #404C8F #5866B4 #828DC7

Accessibility & contrast

On white

7.93
#404C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#404C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C8F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C8F#FFFFFF#000000##FFFFFF
##404C8F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5591
Deuteranopia (green-blind)
#254E8E
Tritanopia (blue-blind)
#195B66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #404c8f;
/* rgb */ color: rgb(64, 76, 143);
/* oklch */ color: oklch(44.1% 0.110 273.4);
Tailwind
colors: {
  custom: {
    50: '#7b7db0',
    500: '#404c8f',
    950: '#000000',
  },
}
SCSS
$custom: #404c8f;
$custom-light: #7b7db0;
$custom-dark: #000000;
JSON
{
  "hex": "#404c8f",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 230.886,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44106,
    "c": 0.11038,
    "h": 273.4
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#404C8F
secondary
#B2A979
accent
#BC5ACE
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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