#404D9D#404D9D

#404D9D is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.130 H 273.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#404D9D
RGBrgb(64, 77, 157)
HSLhsl(232, 42%, 43%)
HSVhsv(232, 59%, 62%)
CMYKcmyk(59.2%, 51%, 0%, 38.4%)
CIE-LABlab(35.66, 19.90, -45.31)
CIE-LCHlch(35.66, 49.49, 293.71°)
OKLaboklab(45.29% 0.0072 -0.1296)
OKLCHoklch(45.29% 0.13 273.2)
XYZxyz(10.8520, 8.8312, 33.0245)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D9D #9D9040
analogous
#407B9D #404D9D #61409D
triadic
#404D9D #9D404D #4D9D40
tetradic
#404D9D #9D407B #9D9040 #409D61
square
#404D9D #9D407B #9D9040 #409D61
split-complementary
#404D9D #9D6140 #7B9D40
monochromatic
#1D2246 #2E3872 #404D9D #5D6BBD #8992CF

Accessibility & contrast

On white

7.59
#404D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#404D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404D9D
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D9D#FFFFFF#000000##FFFFFF
##404D9D1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#12509B
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404d9d;
/* rgb */ color: rgb(64, 77, 157);
/* oklch */ color: oklch(45.3% 0.130 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d7eba',
    500: '#404d9d',
    950: '#000000',
  },
}
SCSS
$custom: #404d9d;
$custom-light: #7d7eba;
$custom-dark: #000000;
JSON
{
  "hex": "#404d9d",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 157
  },
  "hsl": {
    "h": 231.613,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45289,
    "c": 0.12977,
    "h": 273.2
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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