#404AB3#404AB3

#404AB3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.4% C 0.165 H 273.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#404AB3
RGBrgb(64, 74, 179)
HSLhsl(235, 47%, 48%)
HSVhsv(235, 64%, 70%)
CMYKcmyk(64.2%, 58.7%, 0%, 29.8%)
CIE-LABlab(36.44, 29.55, -57.17)
CIE-LCHlch(36.44, 64.35, 297.33°)
OKLaboklab(46.38% 0.0113 -0.1645)
OKLCHoklch(46.38% 0.165 273.9)
XYZxyz(12.6971, 9.2411, 43.7537)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB3 #B3A940
analogous
#4083B3 #404AB3 #7040B3
triadic
#404AB3 #B3404A #4AB340
tetradic
#404AB3 #B34083 #B3A940 #40B370
square
#404AB3 #B34083 #B3A940 #40B370
split-complementary
#404AB3 #B37040 #83B340
monochromatic
#202559 #303786 #404AB3 #6770C9 #949AD9

Accessibility & contrast

On white

7.37
#404AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#404AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB3#FFFFFF#000000##FFFFFF
##404AB31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ab3;
/* rgb */ color: rgb(64, 74, 179);
/* oklch */ color: oklch(46.4% 0.165 273.9);
Tailwind
colors: {
  custom: {
    50: '#817ccb',
    500: '#404ab3',
    950: '#000000',
  },
}
SCSS
$custom: #404ab3;
$custom-light: #817ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab3",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 234.783,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.16486,
    "h": 273.9
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#404AB3
secondary
#C4BF8A
accent
#CB51D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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