#405174#405174

#405174 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.062 H 264.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#405174
RGBrgb(64, 81, 116)
HSLhsl(220, 29%, 35%)
HSVhsv(220, 45%, 45%)
CMYKcmyk(44.8%, 30.2%, 0%, 54.5%)
CIE-LABlab(34.47, 3.47, -22.09)
CIE-LCHlch(34.47, 22.36, 278.93°)
OKLaboklab(43.61% -0.0064 -0.0617)
OKLCHoklch(43.61% 0.062 264.1)
XYZxyz(8.2082, 8.2353, 17.6767)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405174 #746340
analogous
#406B74 #405174 #494074
triadic
#405174 #744051 #517440
tetradic
#405174 #74406B #746340 #407449
square
#405174 #74406B #746340 #407449
split-complementary
#405174 #744940 #6B7440
monochromatic
#141A25 #2A354D #405174 #566D9B #798DB5

Accessibility & contrast

On white

7.93
#405174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#405174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405174
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405174#FFFFFF#000000##FFFFFF
##4051741.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445476
Deuteranopia (green-blind)
#3F4F73
Tritanopia (blue-blind)
#2E585D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405174;
/* rgb */ color: rgb(64, 81, 116);
/* oklch */ color: oklch(43.6% 0.062 264.1);
Tailwind
colors: {
  custom: {
    50: '#77819c',
    500: '#405174',
    950: '#000000',
  },
}
SCSS
$custom: #405174;
$custom-light: #77819c;
$custom-dark: #000000;
JSON
{
  "hex": "#405174",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 220.385,
    "s": 28.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43615,
    "c": 0.06205,
    "h": 264.1
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#405174
secondary
#A09070
accent
#A563C5
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405174

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

Preview Lab → · Contrast checker → · Palette generator →

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