#404B79#404B79

#404B79 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.078 H 272.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#404B79
RGBrgb(64, 75, 121)
HSLhsl(228, 31%, 36%)
HSVhsv(228, 47%, 47%)
CMYKcmyk(47.1%, 38%, 0%, 52.5%)
CIE-LABlab(32.92, 8.98, -27.62)
CIE-LCHlch(32.92, 29.04, 288.00°)
OKLaboklab(42.5% 0.0034 -0.0777)
OKLCHoklch(42.5% 0.078 272.5)
XYZxyz(8.0805, 7.5022, 19.1077)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404B79 #796E40
analogous
#406879 #404B79 #524079
triadic
#404B79 #79404B #4B7940
tetradic
#404B79 #794068 #796E40 #407952
square
#404B79 #794068 #796E40 #407952
split-complementary
#404B79 #795240 #687940
monochromatic
#161929 #2B3251 #404B79 #5564A1 #7A87B9

Accessibility & contrast

On white

8.40
#404B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#404B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404B79
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404B79#FFFFFF#000000##FFFFFF
##404B791.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507B
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#2C545C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #404b79;
/* rgb */ color: rgb(64, 75, 121);
/* oklch */ color: oklch(42.5% 0.078 272.5);
Tailwind
colors: {
  custom: {
    50: '#787da0',
    500: '#404b79',
    950: '#000000',
  },
}
SCSS
$custom: #404b79;
$custom-light: #787da0;
$custom-dark: #000000;
JSON
{
  "hex": "#404b79",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 121
  },
  "hsl": {
    "h": 228.421,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42501,
    "c": 0.07782,
    "h": 272.5
  },
  "luminance": 0.07503
}

Semantic roles & 50–950 ramp

primary
#404B79
secondary
#A49A71
accent
#B361C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#09090E
muted
#7B7B7E

Preview Lab

Preview with #404B79

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

Preview Lab → · Contrast checker → · Palette generator →

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