#404E97#404E97

#404E97 is a mid, moderate blue. Relative luminance 0.088; OKLCH L 45.1% C 0.120 H 272.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#404E97
RGBrgb(64, 78, 151)
HSLhsl(230, 40%, 42%)
HSVhsv(230, 58%, 59%)
CMYKcmyk(57.6%, 48.3%, 0%, 40.8%)
CIE-LABlab(35.54, 17.16, -41.87)
CIE-LCHlch(35.54, 45.25, 292.28°)
OKLaboklab(45.08% 0.0054 -0.1194)
OKLCHoklch(45.08% 0.12 272.6)
XYZxyz(10.4228, 8.7724, 30.4162)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E97 #978940
analogous
#407A97 #404E97 #5E4097
triadic
#404E97 #97404E #4E9740
tetradic
#404E97 #97407A #978940 #40975E
square
#404E97 #97407A #978940 #40975E
split-complementary
#404E97 #975E40 #7A9740
monochromatic
#1C2241 #2E386C #404E97 #5B6AB9 #8691CC

Accessibility & contrast

On white

7.62
#404E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#404E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E97
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E97#FFFFFF#000000##FFFFFF
##404E971.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589A
Deuteranopia (green-blind)
#1F5095
Tritanopia (blue-blind)
#0B5E6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404e97;
/* rgb */ color: rgb(64, 78, 151);
/* oklch */ color: oklch(45.1% 0.120 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c7fb6',
    500: '#404e97',
    950: '#000000',
  },
}
SCSS
$custom: #404e97;
$custom-light: #7c7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#404e97",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 230.345,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45076,
    "c": 0.11957,
    "h": 272.6
  },
  "luminance": 0.08773
}

Semantic roles & 50–950 ramp

primary
#404E97
secondary
#B6AD7D
accent
#BD57D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404E97

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

Preview Lab → · Contrast checker → · Palette generator →

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