#405698#405698

#405698 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.9% C 0.110 H 268.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#405698
RGBrgb(64, 86, 152)
HSLhsl(225, 41%, 42%)
HSVhsv(225, 58%, 60%)
CMYKcmyk(57.9%, 43.4%, 0%, 40.4%)
CIE-LABlab(37.86, 12.28, -38.77)
CIE-LCHlch(37.86, 40.67, 287.58°)
OKLaboklab(46.87% -0.0037 -0.1102)
OKLCHoklch(46.87% 0.11 268.1)
XYZxyz(11.1077, 10.0117, 31.0468)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405698 #988240
analogous
#408298 #405698 #564098
triadic
#405698 #984056 #569840
tetradic
#405698 #984082 #988240 #409856
square
#405698 #984082 #988240 #409856
split-complementary
#405698 #985640 #829840
monochromatic
#1C2542 #2E3E6D #405698 #5B73BA #8698CC

Accessibility & contrast

On white

6.99
#405698 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#405698 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405698
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405698#FFFFFF#000000##FFFFFF
##4056981.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9B
Deuteranopia (green-blind)
#2E5597
Tritanopia (blue-blind)
#04656F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #405698;
/* rgb */ color: rgb(64, 86, 152);
/* oklch */ color: oklch(46.9% 0.110 268.1);
Tailwind
colors: {
  custom: {
    50: '#7c85b7',
    500: '#405698',
    950: '#000000',
  },
}
SCSS
$custom: #405698;
$custom-light: #7c85b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405698",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 225,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46869,
    "c": 0.11031,
    "h": 268.1
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

primary
#405698
secondary
#B7A87D
accent
#B257D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405698

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

Preview Lab → · Contrast checker → · Palette generator →

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