#404AB1#404AB1

#404AB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.162 H 274.0°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#404AB1
RGBrgb(64, 74, 177)
HSLhsl(235, 47%, 47%)
HSVhsv(235, 64%, 69%)
CMYKcmyk(63.8%, 58.2%, 0%, 30.6%)
CIE-LABlab(36.29, 28.85, -56.23)
CIE-LCHlch(36.29, 63.20, 297.16°)
OKLaboklab(46.22% 0.0113 -0.1617)
OKLCHoklch(46.22% 0.162 274)
XYZxyz(12.4963, 9.1608, 42.6961)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB1 #B1A740
analogous
#4083B1 #404AB1 #6E40B1
triadic
#404AB1 #B1404A #4AB140
tetradic
#404AB1 #B14083 #B1A740 #40B16E
square
#404AB1 #B14083 #B1A740 #40B16E
split-complementary
#404AB1 #B16E40 #83B140
monochromatic
#1F2457 #303784 #404AB1 #666FC8 #9399D8

Accessibility & contrast

On white

7.41
#404AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#404AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB1
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB1#FFFFFF#000000##FFFFFF
##404AB11.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ab1;
/* rgb */ color: rgb(64, 74, 177);
/* oklch */ color: oklch(46.2% 0.162 274.0);
Tailwind
colors: {
  custom: {
    50: '#817cc9',
    500: '#404ab1',
    950: '#000000',
  },
}
SCSS
$custom: #404ab1;
$custom-light: #817cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab1",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 234.69,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.16211,
    "h": 274
  },
  "luminance": 0.09162
}

Semantic roles & 50–950 ramp

primary
#404AB1
secondary
#C3BE89
accent
#CB51D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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