#405D98#405D98

#405D98 is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.4% C 0.101 H 263.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#405D98
RGBrgb(64, 93, 152)
HSLhsl(220, 41%, 42%)
HSVhsv(220, 58%, 60%)
CMYKcmyk(57.9%, 38.8%, 0%, 40.4%)
CIE-LABlab(39.89, 7.78, -35.55)
CIE-LCHlch(39.89, 36.39, 282.34°)
OKLaboklab(48.43% -0.0118 -0.1008)
OKLCHoklch(48.43% 0.101 263.3)
XYZxyz(11.6943, 11.1848, 31.2423)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D98 #987B40
analogous
#408998 #405D98 #4F4098
triadic
#405D98 #98405D #5D9840
tetradic
#405D98 #984089 #987B40 #40984F
square
#405D98 #984089 #987B40 #40984F
split-complementary
#405D98 #984F40 #899840
monochromatic
#1C2842 #2E436D #405D98 #5B7ABA #869DCC

Accessibility & contrast

On white

6.49
#405D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#405D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405D98
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D98#FFFFFF#000000##FFFFFF
##405D981.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45629A
Deuteranopia (green-blind)
#395A97
Tritanopia (blue-blind)
#006A73
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405d98;
/* rgb */ color: rgb(64, 93, 152);
/* oklch */ color: oklch(48.4% 0.101 263.3);
Tailwind
colors: {
  custom: {
    50: '#7c8ab6',
    500: '#405d98',
    950: '#000000',
  },
}
SCSS
$custom: #405d98;
$custom-light: #7c8ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#405d98",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 152
  },
  "hsl": {
    "h": 220.227,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48432,
    "c": 0.10144,
    "h": 263.3
  },
  "luminance": 0.11186
}

Semantic roles & 50–950 ramp

primary
#405D98
secondary
#B7A47D
accent
#A957D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405D98

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

Preview Lab → · Contrast checker → · Palette generator →

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