#404F97#404F97

#404F97 is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.3% C 0.118 H 272.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#404F97
RGBrgb(64, 79, 151)
HSLhsl(230, 40%, 42%)
HSVhsv(230, 58%, 59%)
CMYKcmyk(57.6%, 47.7%, 0%, 40.8%)
CIE-LABlab(35.82, 16.50, -41.43)
CIE-LCHlch(35.82, 44.59, 291.72°)
OKLaboklab(45.29% 0.0042 -0.1181)
OKLCHoklch(45.29% 0.118 272.1)
XYZxyz(10.4944, 8.9155, 30.4400)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F97 #978840
analogous
#407B97 #404F97 #5D4097
triadic
#404F97 #97404F #4F9740
tetradic
#404F97 #97407B #978840 #40975D
square
#404F97 #97407B #978840 #40975D
split-complementary
#404F97 #975D40 #7B9740
monochromatic
#1C2241 #2E396C #404F97 #5B6BB9 #8692CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404F97#FFFFFF#000000##FFFFFF
##404F971.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)
#2D589A
Deuteranopia (green-blind)
#215195
Tritanopia (blue-blind)
#0A5F6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404f97;
/* rgb */ color: rgb(64, 79, 151);
/* oklch */ color: oklch(45.3% 0.118 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c80b6',
    500: '#404f97',
    950: '#000000',
  },
}
SCSS
$custom: #404f97;
$custom-light: #7c80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#404f97",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 229.655,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45288,
    "c": 0.11821,
    "h": 272.1
  },
  "luminance": 0.08916
}

Semantic roles & 50–950 ramp

primary
#404F97
secondary
#B6AC7D
accent
#BB57D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404F97

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

Preview Lab → · Contrast checker → · Palette generator →

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