#404178#404178

#404178 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.091 H 280.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#404178
RGBrgb(64, 65, 120)
HSLhsl(239, 30%, 36%)
HSVhsv(239, 47%, 47%)
CMYKcmyk(46.7%, 45.8%, 0%, 52.9%)
CIE-LABlab(29.98, 15.27, -31.66)
CIE-LCHlch(29.98, 35.15, 295.75°)
OKLaboklab(40.23% 0.0169 -0.0896)
OKLCHoklch(40.23% 0.091 280.7)
XYZxyz(7.3938, 6.2263, 18.5779)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404178 #787740
analogous
#405D78 #404178 #5B4078
triadic
#404178 #784041 #417840
tetradic
#404178 #78405D #787740 #40785B
square
#404178 #78405D #787740 #40785B
split-complementary
#404178 #785B40 #5D7840
monochromatic
#151628 #2B2B50 #404178 #5557A0 #7A7BB8

Accessibility & contrast

On white

9.35
#404178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#404178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404178
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404178#FFFFFF#000000##FFFFFF
##4041781.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497A
Deuteranopia (green-blind)
#284577
Tritanopia (blue-blind)
#2D4C56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404178;
/* rgb */ color: rgb(64, 65, 120);
/* oklch */ color: oklch(40.2% 0.091 280.7);
Tailwind
colors: {
  custom: {
    50: '#78759f',
    500: '#404178',
    950: '#000000',
  },
}
SCSS
$custom: #404178;
$custom-light: #78759f;
$custom-dark: #000000;
JSON
{
  "hex": "#404178",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 238.929,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40226,
    "c": 0.09117,
    "h": 280.7
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#404178
secondary
#A3A271
accent
#C561C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #404178

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

Preview Lab → · Contrast checker → · Palette generator →

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