#404879#404879

#404879 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.082 H 275.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#404879
RGBrgb(64, 72, 121)
HSLhsl(232, 31%, 36%)
HSVhsv(232, 47%, 47%)
CMYKcmyk(47.1%, 40.5%, 0%, 52.5%)
CIE-LABlab(32.04, 10.95, -29.01)
CIE-LCHlch(32.04, 31.01, 290.68°)
OKLaboklab(41.82% 0.0075 -0.0818)
OKLCHoklch(41.82% 0.082 275.3)
XYZxyz(7.8818, 7.1048, 19.0415)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404879 #797140
analogous
#406579 #404879 #554079
triadic
#404879 #794048 #487940
tetradic
#404879 #794065 #797140 #407955
square
#404879 #794065 #797140 #407955
split-complementary
#404879 #795540 #657940
monochromatic
#161829 #2B3051 #404879 #5560A1 #7A83B9

Accessibility & contrast

On white

8.67
#404879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#404879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404879
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404879#FFFFFF#000000##FFFFFF
##4048791.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364E7B
Deuteranopia (green-blind)
#314978
Tritanopia (blue-blind)
#2C525A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #404879;
/* rgb */ color: rgb(64, 72, 121);
/* oklch */ color: oklch(41.8% 0.082 275.3);
Tailwind
colors: {
  custom: {
    50: '#787aa0',
    500: '#404879',
    950: '#000000',
  },
}
SCSS
$custom: #404879;
$custom-light: #787aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#404879",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 231.579,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41824,
    "c": 0.08215,
    "h": 275.3
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

primary
#404879
secondary
#A49C71
accent
#B961C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090E
muted
#7B7B7E

Preview Lab

Preview with #404879

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

Preview Lab → · Contrast checker → · Palette generator →

#404879 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva