#404F8A#404F8A

#404F8A is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.4% C 0.099 H 271.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#404F8A
RGBrgb(64, 79, 138)
HSLhsl(228, 37%, 40%)
HSVhsv(228, 54%, 54%)
CMYKcmyk(53.6%, 42.8%, 0%, 45.9%)
CIE-LABlab(35.04, 12.03, -34.77)
CIE-LCHlch(35.04, 36.80, 289.08°)
OKLaboklab(44.43% 0.002 -0.0986)
OKLCHoklch(44.43% 0.099 271.2)
XYZxyz(9.4963, 8.5163, 25.1832)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F8A #8A7B40
analogous
#40748A #404F8A #56408A
triadic
#404F8A #8A404F #4F8A40
tetradic
#404F8A #8A4074 #8A7B40 #408A56
square
#404F8A #8A4074 #8A7B40 #408A56
split-complementary
#404F8A #8A5640 #748A40
monochromatic
#191F36 #2D3760 #404F8A #5669B1 #808EC4

Accessibility & contrast

On white

7.77
#404F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#404F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F8A
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F8A#FFFFFF#000000##FFFFFF
##404F8A1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568C
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#1E5C66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #404f8a;
/* rgb */ color: rgb(64, 79, 138);
/* oklch */ color: oklch(44.4% 0.099 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a80ac',
    500: '#404f8a',
    950: '#000000',
  },
}
SCSS
$custom: #404f8a;
$custom-light: #7a80ac;
$custom-dark: #000000;
JSON
{
  "hex": "#404f8a",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 227.838,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.09863,
    "h": 271.2
  },
  "luminance": 0.08517
}

Semantic roles & 50–950 ramp

primary
#404F8A
secondary
#AFA377
accent
#B65BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #404F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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