#404FB5#404FB5

#404FB5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.161 H 272.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#404FB5
RGBrgb(64, 79, 181)
HSLhsl(232, 48%, 48%)
HSVhsv(232, 65%, 71%)
CMYKcmyk(64.6%, 56.4%, 0%, 29%)
CIE-LABlab(37.87, 27.03, -56.03)
CIE-LCHlch(37.87, 62.21, 295.76°)
OKLaboklab(47.49% 0.0068 -0.1611)
OKLCHoklch(47.49% 0.161 272.4)
XYZxyz(13.2480, 10.0170, 44.9424)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB5 #B5A640
analogous
#4089B5 #404FB5 #6C40B5
triadic
#404FB5 #B5404F #4FB540
tetradic
#404FB5 #B54089 #B5A640 #40B56C
square
#404FB5 #B54089 #B5A640 #40B56C
split-complementary
#404FB5 #B56C40 #89B540
monochromatic
#20285B #303B88 #404FB5 #6875CA #969EDA

Accessibility & contrast

On white

6.99
#404FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#404FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FB5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB5#FFFFFF#000000##FFFFFF
##404FB51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404fb5;
/* rgb */ color: rgb(64, 79, 181);
/* oklch */ color: oklch(47.5% 0.161 272.4);
Tailwind
colors: {
  custom: {
    50: '#8180cc',
    500: '#404fb5',
    950: '#000000',
  },
}
SCSS
$custom: #404fb5;
$custom-light: #8180cc;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb5",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 232.308,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4749,
    "c": 0.16121,
    "h": 272.4
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#404FB5
secondary
#C5BE8B
accent
#C650D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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