#405998#405998

#405998 is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.5% C 0.106 H 266.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#405998
RGBrgb(64, 89, 152)
HSLhsl(223, 41%, 42%)
HSVhsv(223, 58%, 60%)
CMYKcmyk(57.9%, 41.4%, 0%, 40.4%)
CIE-LABlab(38.73, 10.34, -37.40)
CIE-LCHlch(38.73, 38.80, 285.46°)
OKLaboklab(47.53% -0.0072 -0.1062)
OKLCHoklch(47.53% 0.106 266.1)
XYZxyz(11.3523, 10.5009, 31.1283)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405998 #987F40
analogous
#408598 #405998 #534098
triadic
#405998 #984059 #599840
tetradic
#405998 #984085 #987F40 #409853
square
#405998 #984085 #987F40 #409853
split-complementary
#405998 #985340 #859840
monochromatic
#1C2742 #2E406D #405998 #5B76BA #869ACC

Accessibility & contrast

On white

6.77
#405998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#405998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405998
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405998#FFFFFF#000000##FFFFFF
##4059981.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#335797
Tritanopia (blue-blind)
#026771
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #405998;
/* rgb */ color: rgb(64, 89, 152);
/* oklch */ color: oklch(47.5% 0.106 266.1);
Tailwind
colors: {
  custom: {
    50: '#7c87b7',
    500: '#405998',
    950: '#000000',
  },
}
SCSS
$custom: #405998;
$custom-light: #7c87b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405998",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 152
  },
  "hsl": {
    "h": 222.955,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47533,
    "c": 0.10643,
    "h": 266.1
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#405998
secondary
#B7A67D
accent
#AE57D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405998

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

Preview Lab → · Contrast checker → · Palette generator →

#405998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva