#404E9B#404E9B

#404E9B is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.125 H 272.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#404E9B
RGBrgb(64, 78, 155)
HSLhsl(231, 42%, 43%)
HSVhsv(231, 59%, 61%)
CMYKcmyk(58.7%, 49.7%, 0%, 39.2%)
CIE-LABlab(35.80, 18.55, -43.88)
CIE-LCHlch(35.80, 47.64, 292.92°)
OKLaboklab(45.35% 0.0059 -0.1253)
OKLCHoklch(45.35% 0.125 272.7)
XYZxyz(10.7532, 8.9045, 32.1561)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E9B #9B8D40
analogous
#407C9B #404E9B #5F409B
triadic
#404E9B #9B404E #4E9B40
tetradic
#404E9B #9B407C #9B8D40 #409B5F
square
#404E9B #9B407C #9B8D40 #409B5F
split-complementary
#404E9B #9B5F40 #7C9B40
monochromatic
#1C2244 #2E3870 #404E9B #5C6BBC #8892CE

Accessibility & contrast

On white

7.55
#404E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#404E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E9B
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E9B#FFFFFF#000000##FFFFFF
##404E9B1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589E
Deuteranopia (green-blind)
#195099
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404e9b;
/* rgb */ color: rgb(64, 78, 155);
/* oklch */ color: oklch(45.4% 0.125 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d7fb9',
    500: '#404e9b',
    950: '#000000',
  },
}
SCSS
$custom: #404e9b;
$custom-light: #7d7fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#404e9b",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 230.769,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45354,
    "c": 0.12548,
    "h": 272.7
  },
  "luminance": 0.08905
}

Semantic roles & 50–950 ramp

primary
#404E9B
secondary
#B8AF7E
accent
#BE56D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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