#404F7C#404F7C

#404F7C is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.077 H 269.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#404F7C
RGBrgb(64, 79, 124)
HSLhsl(225, 32%, 37%)
HSVhsv(225, 48%, 49%)
CMYKcmyk(48.4%, 36.3%, 0%, 51.4%)
CIE-LABlab(34.27, 7.35, -27.37)
CIE-LCHlch(34.27, 28.34, 285.02°)
OKLaboklab(43.59% -0.0013 -0.077)
OKLCHoklch(43.59% 0.077 269.1)
XYZxyz(8.5473, 8.1367, 20.1850)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F7C #7C6D40
analogous
#406D7C #404F7C #4F407C
triadic
#404F7C #7C404F #4F7C40
tetradic
#404F7C #7C406D #7C6D40 #407C4F
square
#404F7C #7C406D #7C6D40 #407C4F
split-complementary
#404F7C #7C4F40 #6D7C40
monochromatic
#161C2B #2B3554 #404F7C #5569A4 #7B8BBB

Accessibility & contrast

On white

7.99
#404F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#404F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F7C
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F7C#FFFFFF#000000##FFFFFF
##404F7C1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537E
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#29585F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #404f7c;
/* rgb */ color: rgb(64, 79, 124);
/* oklch */ color: oklch(43.6% 0.077 269.1);
Tailwind
colors: {
  custom: {
    50: '#7880a2',
    500: '#404f7c',
    950: '#000000',
  },
}
SCSS
$custom: #404f7c;
$custom-light: #7880a2;
$custom-dark: #000000;
JSON
{
  "hex": "#404f7c",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 225,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43589,
    "c": 0.07702,
    "h": 269.1
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#404F7C
secondary
#A69972
accent
#AE60C8
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #404F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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