#404C8B#404C8B

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

Color values

HEX#404C8B
RGBrgb(64, 76, 139)
HSLhsl(230, 37%, 40%)
HSVhsv(230, 54%, 55%)
CMYKcmyk(54%, 45.3%, 0%, 45.5%)
CIE-LABlab(34.24, 14.34, -36.66)
CIE-LCHlch(34.24, 39.36, 291.36°)
OKLaboklab(43.84% 0.0059 -0.1041)
OKLCHoklch(43.84% 0.104 273.2)
XYZxyz(9.3575, 8.1223, 25.4958)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C8B #8B7F40
analogous
#40728B #404C8B #5A408B
triadic
#404C8B #8B404C #4C8B40
tetradic
#404C8B #8B4072 #8B7F40 #408B5A
square
#404C8B #8B4072 #8B7F40 #408B5A
split-complementary
#404C8B #8B5A40 #728B40
monochromatic
#191E37 #2D3561 #404C8B #5765B2 #818CC5

Accessibility & contrast

On white

8.00
#404C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404C8B
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C8B#FFFFFF#000000##FFFFFF
##404C8B1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#294E8A
Tritanopia (blue-blind)
#1E5A64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #404c8b;
/* rgb */ color: rgb(64, 76, 139);
/* oklch */ color: oklch(43.8% 0.104 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a7dad',
    500: '#404c8b',
    950: '#000000',
  },
}
SCSS
$custom: #404c8b;
$custom-light: #7a7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#404c8b",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 230.4,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.10432,
    "h": 273.2
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#404C8B
secondary
#AFA678
accent
#BB5BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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