#404AA1#404AA1

#404AA1 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.140 H 274.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#404AA1
RGBrgb(64, 74, 161)
HSLhsl(234, 43%, 44%)
HSVhsv(234, 60%, 63%)
CMYKcmyk(60.2%, 54%, 0%, 36.9%)
CIE-LABlab(35.12, 23.26, -48.58)
CIE-LCHlch(35.12, 53.86, 295.59°)
OKLaboklab(44.97% 0.0107 -0.1392)
OKLCHoklch(44.97% 0.14 274.4)
XYZxyz(10.9941, 8.5599, 34.7842)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AA1 #A19740
analogous
#407BA1 #404AA1 #6740A1
triadic
#404AA1 #A1404A #4AA140
tetradic
#404AA1 #A1407B #A19740 #40A167
square
#404AA1 #A1407B #A19740 #40A167
split-complementary
#404AA1 #A16740 #7BA140
monochromatic
#1D2249 #2F3675 #404AA1 #5F69BF #8B92D1

Accessibility & contrast

On white

7.74
#404AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#404AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AA1
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AA1#FFFFFF#000000##FFFFFF
##404AA11.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404aa1;
/* rgb */ color: rgb(64, 74, 161);
/* oklch */ color: oklch(45.0% 0.140 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e7cbd',
    500: '#404aa1',
    950: '#000000',
  },
}
SCSS
$custom: #404aa1;
$custom-light: #7e7cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#404aa1",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 233.814,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.13962,
    "h": 274.4
  },
  "luminance": 0.08561
}

Semantic roles & 50–950 ramp

primary
#404AA1
secondary
#BCB681
accent
#C655D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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