#404A8A#404A8A

#404A8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.3% C 0.106 H 274.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#404A8A
RGBrgb(64, 74, 138)
HSLhsl(232, 37%, 40%)
HSVhsv(232, 54%, 54%)
CMYKcmyk(53.6%, 46.4%, 0%, 45.9%)
CIE-LABlab(33.61, 15.32, -37.05)
CIE-LCHlch(33.61, 40.09, 292.46°)
OKLaboklab(43.34% 0.0082 -0.1053)
OKLCHoklch(43.34% 0.106 274.5)
XYZxyz(9.1491, 7.8219, 25.0675)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404A8A #8A8040
analogous
#406F8A #404A8A #5B408A
triadic
#404A8A #8A404A #4A8A40
tetradic
#404A8A #8A406F #8A8040 #408A5B
square
#404A8A #8A406F #8A8040 #408A5B
split-complementary
#404A8A #8A5B40 #6F8A40
monochromatic
#191D36 #2D3460 #404A8A #5663B1 #8089C4

Accessibility & contrast

On white

8.19
#404A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#404A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404A8A
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404A8A#FFFFFF#000000##FFFFFF
##404A8A1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#264C89
Tritanopia (blue-blind)
#1F5863
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #404a8a;
/* rgb */ color: rgb(64, 74, 138);
/* oklch */ color: oklch(43.3% 0.106 274.5);
Tailwind
colors: {
  custom: {
    50: '#7a7cac',
    500: '#404a8a',
    950: '#000000',
  },
}
SCSS
$custom: #404a8a;
$custom-light: #7a7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#404a8a",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 231.892,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43343,
    "c": 0.10563,
    "h": 274.5
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#404A8A
secondary
#AFA777
accent
#BD5BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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