#405E98#405E98

#405E98 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.7% C 0.100 H 262.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#405E98
RGBrgb(64, 94, 152)
HSLhsl(220, 41%, 42%)
HSVhsv(220, 58%, 60%)
CMYKcmyk(57.9%, 38.2%, 0%, 40.4%)
CIE-LABlab(40.18, 7.14, -35.09)
CIE-LCHlch(40.18, 35.81, 281.51°)
OKLaboklab(48.66% -0.013 -0.0994)
OKLCHoklch(48.66% 0.1 262.5)
XYZxyz(11.7826, 11.3614, 31.2717)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E98 #987A40
analogous
#408A98 #405E98 #4E4098
triadic
#405E98 #98405E #5E9840
tetradic
#405E98 #98408A #987A40 #40984E
square
#405E98 #98408A #987A40 #40984E
split-complementary
#405E98 #984E40 #8A9840
monochromatic
#1C2942 #2E436D #405E98 #5B7CBA #869ECC

Accessibility & contrast

On white

6.42
#405E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#405E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405E98
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E98#FFFFFF#000000##FFFFFF
##405E981.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46639A
Deuteranopia (green-blind)
#3B5B97
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405e98;
/* rgb */ color: rgb(64, 94, 152);
/* oklch */ color: oklch(48.7% 0.100 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bb6',
    500: '#405e98',
    950: '#000000',
  },
}
SCSS
$custom: #405e98;
$custom-light: #7c8bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#405e98",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 152
  },
  "hsl": {
    "h": 219.545,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48659,
    "c": 0.10024,
    "h": 262.5
  },
  "luminance": 0.11362
}

Semantic roles & 50–950 ramp

primary
#405E98
secondary
#B7A37D
accent
#A757D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405E98

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

Preview Lab → · Contrast checker → · Palette generator →

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