#40405E#40405E

#40405E is a dark, muted blue. Relative luminance 0.056; OKLCH L 38.5% C 0.051 H 283.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#40405E
RGBrgb(64, 64, 94)
HSLhsl(240, 19%, 31%)
HSVhsv(240, 32%, 37%)
CMYKcmyk(31.9%, 31.9%, 0%, 63.1%)
CIE-LABlab(28.29, 7.84, -17.76)
CIE-LCHlch(28.29, 19.41, 293.81°)
OKLaboklab(38.47% 0.0121 -0.0493)
OKLCHoklch(38.47% 0.051 283.8)
XYZxyz(5.9676, 5.5648, 11.3472)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40405E #5E5E40
analogous
#404F5E #40405E #4F405E
triadic
#40405E #5E4040 #405E40
tetradic
#40405E #5E404F #5E5E40 #405E4F
square
#40405E #5E404F #5E5E40 #405E4F
split-complementary
#40405E #5E4F40 #4F5E40
monochromatic
#0E0E15 #27273A #40405E #595982 #7676A2

Accessibility & contrast

On white

9.94
#40405E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#40405E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40405E
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40405E#FFFFFF#000000##FFFFFF
##40405E1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37445F
Deuteranopia (green-blind)
#36425D
Tritanopia (blue-blind)
#39454B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40405e;
/* rgb */ color: rgb(64, 64, 94);
/* oklch */ color: oklch(38.5% 0.051 283.8);
Tailwind
colors: {
  custom: {
    50: '#75748b',
    500: '#40405e',
    950: '#000000',
  },
}
SCSS
$custom: #40405e;
$custom-light: #75748b;
$custom-dark: #000000;
JSON
{
  "hex": "#40405e",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 94
  },
  "hsl": {
    "h": 240,
    "s": 18.987,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.05073,
    "h": 283.8
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#40405E
secondary
#8D8D6C
accent
#BC6CBC
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080C
muted
#7B7B7D

Preview Lab

Preview with #40405E

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

Preview Lab → · Contrast checker → · Palette generator →

#40405E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva