#404F98#404F98

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

Color values

HEX#404F98
RGBrgb(64, 79, 152)
HSLhsl(230, 41%, 42%)
HSVhsv(230, 58%, 60%)
CMYKcmyk(57.9%, 48%, 0%, 40.4%)
CIE-LABlab(35.88, 16.85, -41.93)
CIE-LCHlch(35.88, 45.19, 291.89°)
OKLaboklab(45.36% 0.0044 -0.1196)
OKLCHoklch(45.36% 0.12 272.1)
XYZxyz(10.5760, 8.9482, 30.8695)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F98 #988940
analogous
#407B98 #404F98 #5D4098
triadic
#404F98 #98404F #4F9840
tetradic
#404F98 #98407B #988940 #40985D
square
#404F98 #98407B #988940 #40985D
split-complementary
#404F98 #985D40 #7B9840
monochromatic
#1C2242 #2E396D #404F98 #5B6BBA #8692CC

Accessibility & contrast

On white

7.53
#404F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#404F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F98
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F98#FFFFFF#000000##FFFFFF
##404F981.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589B
Deuteranopia (green-blind)
#205196
Tritanopia (blue-blind)
#075F6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404f98;
/* rgb */ color: rgb(64, 79, 152);
/* oklch */ color: oklch(45.4% 0.120 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c80b7',
    500: '#404f98',
    950: '#000000',
  },
}
SCSS
$custom: #404f98;
$custom-light: #7c80b7;
$custom-dark: #000000;
JSON
{
  "hex": "#404f98",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 229.773,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45357,
    "c": 0.11969,
    "h": 272.1
  },
  "luminance": 0.08949
}

Semantic roles & 50–950 ramp

primary
#404F98
secondary
#B7AD7D
accent
#BC57D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404F98

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

Preview Lab → · Contrast checker → · Palette generator →

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