#405997#405997

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

Color values

HEX#405997
RGBrgb(64, 89, 151)
HSLhsl(223, 40%, 42%)
HSVhsv(223, 58%, 59%)
CMYKcmyk(57.6%, 41.1%, 0%, 40.8%)
CIE-LABlab(38.67, 10.00, -36.89)
CIE-LCHlch(38.67, 38.22, 285.17°)
OKLaboklab(47.47% -0.0074 -0.1047)
OKLCHoklch(47.47% 0.105 266)
XYZxyz(11.2708, 10.4682, 30.6988)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405997 #977E40
analogous
#408497 #405997 #534097
triadic
#405997 #974059 #599740
tetradic
#405997 #974084 #977E40 #409753
square
#405997 #974084 #977E40 #409753
split-complementary
#405997 #975340 #849740
monochromatic
#1C2641 #2E406C #405997 #5B76B9 #869ACC

Accessibility & contrast

On white

6.79
#405997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#405997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405997
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405997#FFFFFF#000000##FFFFFF
##4059971.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F99
Deuteranopia (green-blind)
#345796
Tritanopia (blue-blind)
#056770
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #405997;
/* rgb */ color: rgb(64, 89, 151);
/* oklch */ color: oklch(47.5% 0.105 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c87b6',
    500: '#405997',
    950: '#000000',
  },
}
SCSS
$custom: #405997;
$custom-light: #7c87b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405997",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 222.759,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47471,
    "c": 0.10495,
    "h": 266
  },
  "luminance": 0.10469
}

Semantic roles & 50–950 ramp

primary
#405997
secondary
#B6A67D
accent
#AE57D0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405997

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

Preview Lab → · Contrast checker → · Palette generator →

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