#405899#405899

#405899 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.4% C 0.109 H 267.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#405899
RGBrgb(64, 88, 153)
HSLhsl(224, 41%, 43%)
HSVhsv(224, 58%, 60%)
CMYKcmyk(58.2%, 42.5%, 0%, 40%)
CIE-LABlab(38.50, 11.34, -38.36)
CIE-LCHlch(38.50, 40.00, 286.46°)
OKLaboklab(47.37% -0.0058 -0.109)
OKLCHoklch(47.37% 0.109 267)
XYZxyz(11.3519, 10.3685, 31.5339)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405899 #998140
analogous
#408599 #405899 #544099
triadic
#405899 #994058 #589940
tetradic
#405899 #994085 #998140 #409954
square
#405899 #994085 #998140 #409954
split-complementary
#405899 #995440 #859940
monochromatic
#1C2643 #2E3F6E #405899 #5C75BB #879ACD

Accessibility & contrast

On white

6.83
#405899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#405899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405899
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405899#FFFFFF#000000##FFFFFF
##4058991.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9C
Deuteranopia (green-blind)
#315798
Tritanopia (blue-blind)
#006671
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #405899;
/* rgb */ color: rgb(64, 88, 153);
/* oklch */ color: oklch(47.4% 0.109 267.0);
Tailwind
colors: {
  custom: {
    50: '#7c86b7',
    500: '#405899',
    950: '#000000',
  },
}
SCSS
$custom: #405899;
$custom-light: #7c86b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405899",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 223.82,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47374,
    "c": 0.10919,
    "h": 267
  },
  "luminance": 0.10369
}

Semantic roles & 50–950 ramp

primary
#405899
secondary
#B7A87E
accent
#B057D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405899

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

Preview Lab → · Contrast checker → · Palette generator →

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