#404F7B#404F7B

#404F7B is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.075 H 268.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#404F7B
RGBrgb(64, 79, 123)
HSLhsl(225, 32%, 37%)
HSVhsv(225, 48%, 48%)
CMYKcmyk(48%, 35.8%, 0%, 51.8%)
CIE-LABlab(34.21, 7.02, -26.84)
CIE-LCHlch(34.21, 27.74, 284.66°)
OKLaboklab(43.53% -0.0015 -0.0754)
OKLCHoklch(43.53% 0.075 268.8)
XYZxyz(8.4844, 8.1115, 19.8537)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F7B #7B6C40
analogous
#406D7B #404F7B #4F407B
triadic
#404F7B #7B404F #4F7B40
tetradic
#404F7B #7B406D #7B6C40 #407B4F
square
#404F7B #7B406D #7B6C40 #407B4F
split-complementary
#404F7B #7B4F40 #6D7B40
monochromatic
#161B2A #2B3553 #404F7B #5569A3 #7B8BBA

Accessibility & contrast

On white

8.01
#404F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404F7B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F7B#FFFFFF#000000##FFFFFF
##404F7B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537D
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#2A585F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #404f7b;
/* rgb */ color: rgb(64, 79, 123);
/* oklch */ color: oklch(43.5% 0.075 268.8);
Tailwind
colors: {
  custom: {
    50: '#7880a1',
    500: '#404f7b',
    950: '#000000',
  },
}
SCSS
$custom: #404f7b;
$custom-light: #7880a1;
$custom-dark: #000000;
JSON
{
  "hex": "#404f7b",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 224.746,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43532,
    "c": 0.07547,
    "h": 268.8
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

primary
#404F7B
secondary
#A59872
accent
#AD60C8
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0F
muted
#7B7C7E

Preview Lab

Preview with #404F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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