#404C97#404C97

#404C97 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.122 H 273.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#404C97
RGBrgb(64, 76, 151)
HSLhsl(232, 40%, 42%)
HSVhsv(232, 58%, 59%)
CMYKcmyk(57.6%, 49.7%, 0%, 40.8%)
CIE-LABlab(34.99, 18.47, -42.76)
CIE-LCHlch(34.99, 46.58, 293.36°)
OKLaboklab(44.66% 0.0077 -0.1221)
OKLCHoklch(44.66% 0.122 273.6)
XYZxyz(10.2829, 8.4925, 30.3695)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C97 #978B40
analogous
#407897 #404C97 #604097
triadic
#404C97 #97404C #4C9740
tetradic
#404C97 #974078 #978B40 #409760
square
#404C97 #974078 #978B40 #409760
split-complementary
#404C97 #976040 #789740
monochromatic
#1C2141 #2E366C #404C97 #5B68B9 #868FCC

Accessibility & contrast

On white

7.78
#404C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404C97
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C97#FFFFFF#000000##FFFFFF
##404C971.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#1A4F95
Tritanopia (blue-blind)
#0B5D6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #404c97;
/* rgb */ color: rgb(64, 76, 151);
/* oklch */ color: oklch(44.7% 0.122 273.6);
Tailwind
colors: {
  custom: {
    50: '#7c7db6',
    500: '#404c97',
    950: '#000000',
  },
}
SCSS
$custom: #404c97;
$custom-light: #7c7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#404c97",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 231.724,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.12232,
    "h": 273.6
  },
  "luminance": 0.08493
}

Semantic roles & 50–950 ramp

primary
#404C97
secondary
#B6AE7D
accent
#C057D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #404C97

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

Preview Lab → · Contrast checker → · Palette generator →

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