#404E9D#404E9D

#404E9D is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.128 H 272.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#404E9D
RGBrgb(64, 78, 157)
HSLhsl(231, 42%, 43%)
HSVhsv(231, 59%, 62%)
CMYKcmyk(59.2%, 50.3%, 0%, 38.4%)
CIE-LABlab(35.93, 19.25, -44.87)
CIE-LCHlch(35.93, 48.83, 293.22°)
OKLaboklab(45.5% 0.0061 -0.1283)
OKLCHoklch(45.5% 0.128 272.7)
XYZxyz(10.9225, 8.9723, 33.0480)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E9D #9D8F40
analogous
#407C9D #404E9D #60409D
triadic
#404E9D #9D404E #4E9D40
tetradic
#404E9D #9D407C #9D8F40 #409D60
square
#404E9D #9D407C #9D8F40 #409D60
split-complementary
#404E9D #9D6040 #7C9D40
monochromatic
#1D2346 #2E3872 #404E9D #5D6CBD #8993CF

Accessibility & contrast

On white

7.51
#404E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#404E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E9D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E9D#FFFFFF#000000##FFFFFF
##404E9D1.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A0
Deuteranopia (green-blind)
#15519B
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404e9d;
/* rgb */ color: rgb(64, 78, 157);
/* oklch */ color: oklch(45.5% 0.128 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d7fba',
    500: '#404e9d',
    950: '#000000',
  },
}
SCSS
$custom: #404e9d;
$custom-light: #7d7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#404e9d",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 230.968,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.12841,
    "h": 272.7
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#404E9D
secondary
#B9B17F
accent
#BF56D2
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #404E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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