#404B8D#404B8D

#404B8D is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.8% C 0.109 H 273.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#404B8D
RGBrgb(64, 75, 141)
HSLhsl(231, 38%, 40%)
HSVhsv(231, 55%, 55%)
CMYKcmyk(54.6%, 46.8%, 0%, 44.7%)
CIE-LABlab(34.08, 15.68, -38.14)
CIE-LCHlch(34.08, 41.24, 292.35°)
OKLaboklab(43.76% 0.0075 -0.1085)
OKLCHoklch(43.76% 0.109 273.9)
XYZxyz(9.4366, 8.0446, 26.2496)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404B8D #8D8240
analogous
#40718D #404B8D #5C408D
triadic
#404B8D #8D404B #4B8D40
tetradic
#404B8D #8D4071 #8D8240 #408D5C
square
#404B8D #8D4071 #8D8240 #408D5C
split-complementary
#404B8D #8D5C40 #718D40
monochromatic
#1A1E39 #2D3563 #404B8D #5764B3 #818BC6

Accessibility & contrast

On white

8.05
#404B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#404B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404B8D
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404B8D#FFFFFF#000000##FFFFFF
##404B8D1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E548F
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#1C5965
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #404b8d;
/* rgb */ color: rgb(64, 75, 141);
/* oklch */ color: oklch(43.8% 0.109 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b7daf',
    500: '#404b8d',
    950: '#000000',
  },
}
SCSS
$custom: #404b8d;
$custom-light: #7b7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#404b8d",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 231.429,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.10877,
    "h": 273.9
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#404B8D
secondary
#B0A878
accent
#BD5ACE
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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