#404DAF#404DAF

#404DAF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.155 H 273.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#404DAF
RGBrgb(64, 77, 175)
HSLhsl(233, 46%, 47%)
HSVhsv(233, 63%, 69%)
CMYKcmyk(63.4%, 56%, 0%, 31.4%)
CIE-LABlab(36.91, 26.21, -54.03)
CIE-LCHlch(36.91, 60.06, 295.88°)
OKLaboklab(46.64% 0.0084 -0.1552)
OKLCHoklch(46.64% 0.155 273.1)
XYZxyz(12.5035, 9.4918, 41.7223)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DAF #AFA240
analogous
#4085AF #404DAF #6B40AF
triadic
#404DAF #AF404D #4DAF40
tetradic
#404DAF #AF4085 #AFA240 #40AF6B
square
#404DAF #AF4085 #AFA240 #40AF6B
split-complementary
#404DAF #AF6B40 #85AF40
monochromatic
#1F2655 #303982 #404DAF #6571C7 #929AD7

Accessibility & contrast

On white

7.24
#404DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#404DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DAF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DAF#FFFFFF#000000##FFFFFF
##404DAF1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404daf;
/* rgb */ color: rgb(64, 77, 175);
/* oklch */ color: oklch(46.6% 0.155 273.1);
Tailwind
colors: {
  custom: {
    50: '#807ec8',
    500: '#404daf',
    950: '#000000',
  },
}
SCSS
$custom: #404daf;
$custom-light: #807ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#404daf",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 232.973,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46635,
    "c": 0.15546,
    "h": 273.1
  },
  "luminance": 0.09493
}

Semantic roles & 50–950 ramp

primary
#404DAF
secondary
#C3BC88
accent
#C752D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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