#404E98#404E98

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

Color values

HEX#404E98
RGBrgb(64, 78, 152)
HSLhsl(230, 41%, 42%)
HSVhsv(230, 58%, 60%)
CMYKcmyk(57.9%, 48.7%, 0%, 40.4%)
CIE-LABlab(35.61, 17.51, -42.38)
CIE-LCHlch(35.61, 45.85, 292.45°)
OKLaboklab(45.15% 0.0055 -0.1209)
OKLCHoklch(45.15% 0.121 272.6)
XYZxyz(10.5044, 8.8050, 30.8457)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E98 #988A40
analogous
#407A98 #404E98 #5E4098
triadic
#404E98 #98404E #4E9840
tetradic
#404E98 #98407A #988A40 #40985E
square
#404E98 #98407A #988A40 #40985E
split-complementary
#404E98 #985E40 #7A9840
monochromatic
#1C2242 #2E386D #404E98 #5B6ABA #8691CC

Accessibility & contrast

On white

7.61
#404E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#404E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E98
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E98#FFFFFF#000000##FFFFFF
##404E981.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#085F6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404e98;
/* rgb */ color: rgb(64, 78, 152);
/* oklch */ color: oklch(45.1% 0.121 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c7fb7',
    500: '#404e98',
    950: '#000000',
  },
}
SCSS
$custom: #404e98;
$custom-light: #7c7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#404e98",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 230.455,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45145,
    "c": 0.12106,
    "h": 272.6
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404E98

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

Preview Lab → · Contrast checker → · Palette generator →

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