#404FD4#404FD4

#404FD4 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.0% C 0.203 H 271.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#404FD4
RGBrgb(64, 79, 212)
HSLhsl(234, 63%, 54%)
HSVhsv(234, 70%, 83%)
CMYKcmyk(69.8%, 62.7%, 0%, 16.9%)
CIE-LABlab(40.30, 37.87, -70.11)
CIE-LCHlch(40.30, 79.68, 298.37°)
OKLaboklab(50.05% 0.0065 -0.2024)
OKLCHoklch(50.05% 0.203 271.8)
XYZxyz(16.7900, 11.4338, 63.5967)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FD4 #D4C540
analogous
#4099D4 #404FD4 #7B40D4
triadic
#404FD4 #D4404F #4FD440
tetradic
#404FD4 #D44099 #D4C540 #40D47B
square
#404FD4 #D44099 #D4C540 #40D47B
split-complementary
#404FD4 #D47B40 #99D440
monochromatic
#1C267D #2735AF #404FD4 #727DDF #A4ABEA

Accessibility & contrast

On white

6.39
#404FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#404FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FD4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FD4#FFFFFF#000000##FFFFFF
##404FD41.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #404fd4;
/* rgb */ color: rgb(64, 79, 212);
/* oklch */ color: oklch(50.0% 0.203 271.8);
Tailwind
colors: {
  custom: {
    50: '#8880e2',
    500: '#404fd4',
    950: '#000000',
  },
}
SCSS
$custom: #404fd4;
$custom-light: #8880e2;
$custom-dark: #000000;
JSON
{
  "hex": "#404fd4",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 233.919,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.20253,
    "h": 271.8
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#404FD4
secondary
#D7D198
accent
#D642E6
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0A15
muted
#7E7C84

Preview Lab

Preview with #404FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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