#404BDF#404BDF

#404BDF is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.4% C 0.221 H 272.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#404BDF
RGBrgb(64, 75, 223)
HSLhsl(236, 71%, 56%)
HSVhsv(236, 71%, 87%)
CMYKcmyk(71.3%, 66.4%, 0%, 12.5%)
CIE-LABlab(40.33, 44.06, -76.37)
CIE-LCHlch(40.33, 88.17, 299.98°)
OKLaboklab(50.36% 0.0083 -0.2208)
OKLCHoklch(50.36% 0.221 272.2)
XYZxyz(17.9452, 11.4480, 71.0617)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BDF #DFD440
analogous
#409BDF #404BDF #8540DF
triadic
#404BDF #DF404B #4BDF40
tetradic
#404BDF #DF409B #DFD440 #40DF85
square
#404BDF #DF409B #DFD440 #40DF85
split-complementary
#404BDF #DF8540 #9BDF40
monochromatic
#18208D #202CC1 #404BDF #747CE8 #A9AEF1

Accessibility & contrast

On white

6.38
#404BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #404BDF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BDF#FFFFFF#000000##FFFFFF
##404BDF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404bdf;
/* rgb */ color: rgb(64, 75, 223);
/* oklch */ color: oklch(50.4% 0.221 272.2);
Tailwind
colors: {
  custom: {
    50: '#8a7eea',
    500: '#404bdf',
    950: '#000000',
  },
}
SCSS
$custom: #404bdf;
$custom-light: #8a7eea;
$custom-dark: #000000;
JSON
{
  "hex": "#404bdf",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 223
  },
  "hsl": {
    "h": 235.849,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50355,
    "c": 0.22095,
    "h": 272.2
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#404BDF
secondary
#DEDA9D
accent
#E23AEE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #404BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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