#404AB9#404AB9

#404AB9 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.173 H 273.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#404AB9
RGBrgb(64, 74, 185)
HSLhsl(235, 49%, 49%)
HSVhsv(235, 65%, 73%)
CMYKcmyk(65.4%, 60%, 0%, 27.5%)
CIE-LABlab(36.91, 31.64, -59.95)
CIE-LCHlch(36.91, 67.78, 297.82°)
OKLaboklab(46.87% 0.0112 -0.1726)
OKLCHoklch(46.87% 0.173 273.7)
XYZxyz(13.3172, 9.4892, 47.0193)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB9 #B9AF40
analogous
#4087B9 #404AB9 #7340B9
triadic
#404AB9 #B9404A #4AB940
tetradic
#404AB9 #B94087 #B9AF40 #40B973
square
#404AB9 #B94087 #B9AF40 #40B973
split-complementary
#404AB9 #B97340 #87B940
monochromatic
#21265E #30388C #404AB9 #6B73CC #989EDB

Accessibility & contrast

On white

7.25
#404AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#404AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB9
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB9#FFFFFF#000000##FFFFFF
##404AB91.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00657A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404ab9;
/* rgb */ color: rgb(64, 74, 185);
/* oklch */ color: oklch(46.9% 0.173 273.7);
Tailwind
colors: {
  custom: {
    50: '#837ccf',
    500: '#404ab9',
    950: '#000000',
  },
}
SCSS
$custom: #404ab9;
$custom-light: #837ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab9",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 235.041,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4687,
    "c": 0.17302,
    "h": 273.7
  },
  "luminance": 0.0949
}

Semantic roles & 50–950 ramp

primary
#404AB9
secondary
#C7C28E
accent
#CD50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #404AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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