#404C8A#404C8A

#404C8A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.8% C 0.103 H 273.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#404C8A
RGBrgb(64, 76, 138)
HSLhsl(230, 37%, 40%)
HSVhsv(230, 54%, 54%)
CMYKcmyk(53.6%, 44.9%, 0%, 45.9%)
CIE-LABlab(34.18, 14.00, -36.14)
CIE-LCHlch(34.18, 38.76, 291.17°)
OKLaboklab(43.78% 0.0057 -0.1026)
OKLCHoklch(43.78% 0.103 273.2)
XYZxyz(9.2848, 8.0932, 25.1127)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C8A #8A7E40
analogous
#40718A #404C8A #59408A
triadic
#404C8A #8A404C #4C8A40
tetradic
#404C8A #8A4071 #8A7E40 #408A59
square
#404C8A #8A4071 #8A7E40 #408A59
split-complementary
#404C8A #8A5940 #718A40
monochromatic
#191E36 #2D3560 #404C8A #5665B1 #808BC4

Accessibility & contrast

On white

8.02
#404C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#404C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C8A
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C8A#FFFFFF#000000##FFFFFF
##404C8A1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#1F5964
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #404c8a;
/* rgb */ color: rgb(64, 76, 138);
/* oklch */ color: oklch(43.8% 0.103 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a7dac',
    500: '#404c8a',
    950: '#000000',
  },
}
SCSS
$custom: #404c8a;
$custom-light: #7a7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#404c8a",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 230.27,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43776,
    "c": 0.1028,
    "h": 273.2
  },
  "luminance": 0.08094
}

Semantic roles & 50–950 ramp

primary
#404C8A
secondary
#AFA677
accent
#BA5BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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