#404BB1#404BB1

#404BB1 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.161 H 273.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#404BB1
RGBrgb(64, 75, 177)
HSLhsl(234, 47%, 47%)
HSVhsv(234, 64%, 69%)
CMYKcmyk(63.8%, 57.6%, 0%, 30.6%)
CIE-LABlab(36.55, 28.20, -55.82)
CIE-LCHlch(36.55, 62.54, 296.81°)
OKLaboklab(46.41% 0.0104 -0.1605)
OKLCHoklch(46.41% 0.161 273.7)
XYZxyz(12.5636, 9.2954, 42.7186)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BB1 #B1A640
analogous
#4084B1 #404BB1 #6D40B1
triadic
#404BB1 #B1404B #4BB140
tetradic
#404BB1 #B14084 #B1A640 #40B16D
square
#404BB1 #B14084 #B1A640 #40B16D
split-complementary
#404BB1 #B16D40 #84B140
monochromatic
#1F2557 #303884 #404BB1 #6670C8 #939AD8

Accessibility & contrast

On white

7.34
#404BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#404BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BB1
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BB1#FFFFFF#000000##FFFFFF
##404BB11.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404bb1;
/* rgb */ color: rgb(64, 75, 177);
/* oklch */ color: oklch(46.4% 0.161 273.7);
Tailwind
colors: {
  custom: {
    50: '#817dc9',
    500: '#404bb1',
    950: '#000000',
  },
}
SCSS
$custom: #404bb1;
$custom-light: #817dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#404bb1",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 234.159,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46407,
    "c": 0.16082,
    "h": 273.7
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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