#405178#405178

#405178 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.068 H 265.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#405178
RGBrgb(64, 81, 120)
HSLhsl(222, 30%, 36%)
HSVhsv(222, 47%, 47%)
CMYKcmyk(46.7%, 32.5%, 0%, 52.9%)
CIE-LABlab(34.66, 4.75, -24.27)
CIE-LCHlch(34.66, 24.73, 281.07°)
OKLaboklab(43.83% -0.0051 -0.068)
OKLCHoklch(43.83% 0.068 265.7)
XYZxyz(8.4459, 8.3304, 18.9286)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405178 #786740
analogous
#406D78 #405178 #4B4078
triadic
#405178 #784051 #517840
tetradic
#405178 #78406D #786740 #40784B
square
#405178 #78406D #786740 #40784B
split-complementary
#405178 #784B40 #6D7840
monochromatic
#151B28 #2B3650 #405178 #556CA0 #7A8DB8

Accessibility & contrast

On white

7.88
#405178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405178
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405178#FFFFFF#000000##FFFFFF
##4051781.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43547A
Deuteranopia (green-blind)
#3D4F77
Tritanopia (blue-blind)
#2B595F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405178;
/* rgb */ color: rgb(64, 81, 120);
/* oklch */ color: oklch(43.8% 0.068 265.7);
Tailwind
colors: {
  custom: {
    50: '#78819f',
    500: '#405178',
    950: '#000000',
  },
}
SCSS
$custom: #405178;
$custom-light: #78819f;
$custom-dark: #000000;
JSON
{
  "hex": "#405178",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 221.786,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4383,
    "c": 0.06821,
    "h": 265.7
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#405178
secondary
#A39471
accent
#A861C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #405178

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

Preview Lab → · Contrast checker → · Palette generator →

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