#405179#405179

#405179 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 43.9% C 0.070 H 266.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#405179
RGBrgb(64, 81, 121)
HSLhsl(222, 31%, 36%)
HSVhsv(222, 47%, 47%)
CMYKcmyk(47.1%, 33.1%, 0%, 52.5%)
CIE-LABlab(34.71, 5.07, -24.82)
CIE-LCHlch(34.71, 25.33, 281.55°)
OKLaboklab(43.88% -0.0048 -0.0696)
OKLCHoklch(43.88% 0.07 266)
XYZxyz(8.5069, 8.3548, 19.2498)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405179 #796840
analogous
#406E79 #405179 #4C4079
triadic
#405179 #794051 #517940
tetradic
#405179 #79406E #796840 #40794C
square
#405179 #79406E #796840 #40794C
split-complementary
#405179 #794C40 #6E7940
monochromatic
#161B29 #2B3651 #405179 #556CA1 #7A8DB9

Accessibility & contrast

On white

7.86
#405179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#405179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405179
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405179#FFFFFF#000000##FFFFFF
##4051791.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42547B
Deuteranopia (green-blind)
#3D4F78
Tritanopia (blue-blind)
#2B595F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405179;
/* rgb */ color: rgb(64, 81, 121);
/* oklch */ color: oklch(43.9% 0.070 266.0);
Tailwind
colors: {
  custom: {
    50: '#7881a0',
    500: '#405179',
    950: '#000000',
  },
}
SCSS
$custom: #405179;
$custom-light: #7881a0;
$custom-dark: #000000;
JSON
{
  "hex": "#405179",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 121
  },
  "hsl": {
    "h": 222.105,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43884,
    "c": 0.06976,
    "h": 266
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#405179
secondary
#A49571
accent
#A961C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405179

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

Preview Lab → · Contrast checker → · Palette generator →

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