#404DB1#404DB1

#404DB1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.158 H 273.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#404DB1
RGBrgb(64, 77, 177)
HSLhsl(233, 47%, 47%)
HSVhsv(233, 64%, 69%)
CMYKcmyk(63.8%, 56.5%, 0%, 30.6%)
CIE-LABlab(37.06, 26.92, -54.98)
CIE-LCHlch(37.06, 61.22, 296.08°)
OKLaboklab(46.79% 0.0085 -0.158)
OKLCHoklch(46.79% 0.158 273.1)
XYZxyz(12.7014, 9.5710, 42.7645)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB1 #B1A440
analogous
#4086B1 #404DB1 #6B40B1
triadic
#404DB1 #B1404D #4DB140
tetradic
#404DB1 #B14086 #B1A440 #40B16B
square
#404DB1 #B14086 #B1A440 #40B16B
split-complementary
#404DB1 #B16B40 #86B140
monochromatic
#1F2657 #303984 #404DB1 #6672C8 #939BD8

Accessibility & contrast

On white

7.21
#404DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#404DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB1#FFFFFF#000000##FFFFFF
##404DB11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404db1;
/* rgb */ color: rgb(64, 77, 177);
/* oklch */ color: oklch(46.8% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#817ec9',
    500: '#404db1',
    950: '#000000',
  },
}
SCSS
$custom: #404db1;
$custom-light: #817ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#404db1",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 233.097,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46791,
    "c": 0.15824,
    "h": 273.1
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#404DB1
secondary
#C3BD89
accent
#C751D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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