#404CDF#404CDF

#404CDF is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.5% C 0.220 H 272.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#404CDF
RGBrgb(64, 76, 223)
HSLhsl(235, 71%, 56%)
HSVhsv(235, 71%, 87%)
CMYKcmyk(71.3%, 65.9%, 0%, 12.5%)
CIE-LABlab(40.55, 43.46, -76.00)
CIE-LCHlch(40.55, 87.55, 299.76°)
OKLaboklab(50.52% 0.0077 -0.2197)
OKLCHoklch(50.52% 0.22 272)
XYZxyz(18.0136, 11.5848, 71.0845)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CDF #DFD340
analogous
#409CDF #404CDF #8440DF
triadic
#404CDF #DF404C #4CDF40
tetradic
#404CDF #DF409C #DFD340 #40DF84
square
#404CDF #DF409C #DFD340 #40DF84
split-complementary
#404CDF #DF8440 #9CDF40
monochromatic
#18208D #202DC1 #404CDF #747DE8 #A9AEF1

Accessibility & contrast

On white

6.33
#404CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#404CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CDF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CDF#FFFFFF#000000##FFFFFF
##404CDF1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#00738F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #404cdf;
/* rgb */ color: rgb(64, 76, 223);
/* oklch */ color: oklch(50.5% 0.220 272.0);
Tailwind
colors: {
  custom: {
    50: '#8a7eea',
    500: '#404cdf',
    950: '#000000',
  },
}
SCSS
$custom: #404cdf;
$custom-light: #8a7eea;
$custom-dark: #000000;
JSON
{
  "hex": "#404cdf",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 223
  },
  "hsl": {
    "h": 235.472,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50518,
    "c": 0.21985,
    "h": 272
  },
  "luminance": 0.11587
}

Semantic roles & 50–950 ramp

primary
#404CDF
secondary
#DED99D
accent
#E03AEE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #404CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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