#404F8D#404F8D

#404F8D is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.6% C 0.103 H 271.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#404F8D
RGBrgb(64, 79, 141)
HSLhsl(228, 38%, 40%)
HSVhsv(228, 55%, 55%)
CMYKcmyk(54.6%, 44%, 0%, 44.7%)
CIE-LABlab(35.21, 13.05, -36.33)
CIE-LCHlch(35.21, 38.60, 289.76°)
OKLaboklab(44.63% 0.0026 -0.1032)
OKLCHoklch(44.63% 0.103 271.4)
XYZxyz(9.7165, 8.6044, 26.3429)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F8D #8D7E40
analogous
#40758D #404F8D #58408D
triadic
#404F8D #8D404F #4F8D40
tetradic
#404F8D #8D4075 #8D7E40 #408D58
square
#404F8D #8D4075 #8D7E40 #408D58
split-complementary
#404F8D #8D5840 #758D40
monochromatic
#1A2039 #2D3763 #404F8D #5769B3 #818FC6

Accessibility & contrast

On white

7.72
#404F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#404F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F8D
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F8D#FFFFFF#000000##FFFFFF
##404F8D1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568F
Deuteranopia (green-blind)
#2C508C
Tritanopia (blue-blind)
#1B5C67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404f8d;
/* rgb */ color: rgb(64, 79, 141);
/* oklch */ color: oklch(44.6% 0.103 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b80af',
    500: '#404f8d',
    950: '#000000',
  },
}
SCSS
$custom: #404f8d;
$custom-light: #7b80af;
$custom-dark: #000000;
JSON
{
  "hex": "#404f8d",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 228.312,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44625,
    "c": 0.10319,
    "h": 271.4
  },
  "luminance": 0.08605
}

Semantic roles & 50–950 ramp

primary
#404F8D
secondary
#B0A678
accent
#B75ACE
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #404F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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