#404FDF#404FDF

#404FDF is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.0% C 0.217 H 271.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#404FDF
RGBrgb(64, 79, 223)
HSLhsl(234, 71%, 56%)
HSVhsv(234, 71%, 87%)
CMYKcmyk(71.3%, 64.6%, 0%, 12.5%)
CIE-LABlab(41.23, 41.65, -74.89)
CIE-LCHlch(41.23, 85.69, 299.08°)
OKLaboklab(51.01% 0.0059 -0.2164)
OKLCHoklch(51.01% 0.217 271.5)
XYZxyz(18.2251, 12.0078, 71.1550)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FDF #DFD040
analogous
#409EDF #404FDF #8140DF
triadic
#404FDF #DF404F #4FDF40
tetradic
#404FDF #DF409E #DFD040 #40DF81
square
#404FDF #DF409E #DFD040 #40DF81
split-complementary
#404FDF #DF8140 #9EDF40
monochromatic
#18238D #2030C1 #404FDF #747FE8 #A9B0F1

Accessibility & contrast

On white

6.17
#404FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#404FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FDF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FDF#FFFFFF#000000##FFFFFF
##404FDF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E4
Deuteranopia (green-blind)
#005ADC
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #404fdf;
/* rgb */ color: rgb(64, 79, 223);
/* oklch */ color: oklch(51.0% 0.217 271.5);
Tailwind
colors: {
  custom: {
    50: '#8a80ea',
    500: '#404fdf',
    950: '#000000',
  },
}
SCSS
$custom: #404fdf;
$custom-light: #8a80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#404fdf",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 223
  },
  "hsl": {
    "h": 234.34,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51014,
    "c": 0.21651,
    "h": 271.5
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#404FDF
secondary
#DED89D
accent
#DD3AEE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #404FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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