#404AA2#404AA2

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

Color values

HEX#404AA2
RGBrgb(64, 74, 162)
HSLhsl(234, 43%, 44%)
HSVhsv(234, 60%, 64%)
CMYKcmyk(60.5%, 54.3%, 0%, 36.5%)
CIE-LABlab(35.19, 23.61, -49.07)
CIE-LCHlch(35.19, 54.45, 295.70°)
OKLaboklab(45.05% 0.0108 -0.1406)
OKLCHoklch(45.05% 0.141 274.4)
XYZxyz(11.0826, 8.5953, 35.2505)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AA2 #A29840
analogous
#407BA2 #404AA2 #6740A2
triadic
#404AA2 #A2404A #4AA240
tetradic
#404AA2 #A2407B #A29840 #40A267
square
#404AA2 #A2407B #A29840 #40A267
split-complementary
#404AA2 #A26740 #7BA240
monochromatic
#1D224A #2F3676 #404AA2 #5F69C0 #8B92D1

Accessibility & contrast

On white

7.72
#404AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#404AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AA2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AA2#FFFFFF#000000##FFFFFF
##404AA21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404aa2;
/* rgb */ color: rgb(64, 74, 162);
/* oklch */ color: oklch(45.0% 0.141 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e7cbe',
    500: '#404aa2',
    950: '#000000',
  },
}
SCSS
$custom: #404aa2;
$custom-light: #7e7cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#404aa2",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 233.878,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45049,
    "c": 0.14105,
    "h": 274.4
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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