#404DC5#404DC5

#404DC5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.4% C 0.185 H 272.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#404DC5
RGBrgb(64, 77, 197)
HSLhsl(234, 53%, 51%)
HSVhsv(234, 68%, 77%)
CMYKcmyk(67.5%, 60.9%, 0%, 22.7%)
CIE-LABlab(38.60, 33.91, -64.22)
CIE-LCHlch(38.60, 72.62, 297.84°)
OKLaboklab(48.42% 0.0085 -0.1851)
OKLCHoklch(48.42% 0.185 272.6)
XYZxyz(14.8429, 10.4276, 54.0430)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC5 #C5B840
analogous
#408FC5 #404DC5 #7540C5
triadic
#404DC5 #C5404D #4DC540
tetradic
#404DC5 #C5408F #C5B840 #40C575
square
#404DC5 #C5408F #C5B840 #40C575
split-complementary
#404DC5 #C57540 #8FC540
monochromatic
#20286A #2F3999 #404DC5 #6F79D3 #9EA4E2

Accessibility & contrast

On white

6.81
#404DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#404DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC5#FFFFFF#000000##FFFFFF
##404DC51.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404dc5;
/* rgb */ color: rgb(64, 77, 197);
/* oklch */ color: oklch(48.4% 0.185 272.6);
Tailwind
colors: {
  custom: {
    50: '#857ed7',
    500: '#404dc5',
    950: '#000000',
  },
}
SCSS
$custom: #404dc5;
$custom-light: #857ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc5",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 234.135,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48416,
    "c": 0.18535,
    "h": 272.6
  },
  "luminance": 0.10429
}

Semantic roles & 50–950 ramp

primary
#404DC5
secondary
#CEC893
accent
#CF4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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