#404D98#404D98

#404D98 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.122 H 273.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#404D98
RGBrgb(64, 77, 152)
HSLhsl(231, 41%, 42%)
HSVhsv(231, 58%, 60%)
CMYKcmyk(57.9%, 49.3%, 0%, 40.4%)
CIE-LABlab(35.33, 18.16, -42.82)
CIE-LCHlch(35.33, 46.51, 292.98°)
OKLaboklab(44.94% 0.0066 -0.1222)
OKLCHoklch(44.94% 0.122 273.1)
XYZxyz(10.4339, 8.6640, 30.8222)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D98 #988B40
analogous
#407998 #404D98 #5F4098
triadic
#404D98 #98404D #4D9840
tetradic
#404D98 #984079 #988B40 #40985F
square
#404D98 #984079 #988B40 #40985F
split-complementary
#404D98 #985F40 #799840
monochromatic
#1C2142 #2E376D #404D98 #5B69BA #8691CC

Accessibility & contrast

On white

7.68
#404D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#404D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404D98
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D98#FFFFFF#000000##FFFFFF
##404D981.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#1B4F96
Tritanopia (blue-blind)
#085E6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404d98;
/* rgb */ color: rgb(64, 77, 152);
/* oklch */ color: oklch(44.9% 0.122 273.1);
Tailwind
colors: {
  custom: {
    50: '#7c7eb7',
    500: '#404d98',
    950: '#000000',
  },
}
SCSS
$custom: #404d98;
$custom-light: #7c7eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#404d98",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 231.136,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44935,
    "c": 0.12242,
    "h": 273.1
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#404D98
secondary
#B7AE7D
accent
#BF57D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404D98

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

Preview Lab → · Contrast checker → · Palette generator →

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