#40405A#40405A

#40405A is a dark, muted blue. Relative luminance 0.055; OKLCH L 38.3% C 0.044 H 284.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#40405A
RGBrgb(64, 64, 90)
HSLhsl(240, 17%, 30%)
HSVhsv(240, 29%, 35%)
CMYKcmyk(28.9%, 28.9%, 0%, 64.7%)
CIE-LABlab(28.10, 6.68, -15.46)
CIE-LCHlch(28.10, 16.85, 293.36°)
OKLaboklab(38.27% 0.0107 -0.0427)
OKLCHoklch(38.27% 0.044 284.1)
XYZxyz(5.7927, 5.4948, 10.4263)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40405A #5A5A40
analogous
#404D5A #40405A #4D405A
triadic
#40405A #5A4040 #405A40
tetradic
#40405A #5A404D #5A5A40 #405A4D
square
#40405A #5A404D #5A5A40 #405A4D
split-complementary
#40405A #5A4D40 #4D5A40
monochromatic
#0D0D12 #272736 #40405A #59597E #76769E

Accessibility & contrast

On white

10.00
#40405A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#40405A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40405A
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40405A#FFFFFF#000000##FFFFFF
##40405A1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39435B
Deuteranopia (green-blind)
#384259
Tritanopia (blue-blind)
#3A4549
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40405a;
/* rgb */ color: rgb(64, 64, 90);
/* oklch */ color: oklch(38.3% 0.044 284.1);
Tailwind
colors: {
  custom: {
    50: '#757488',
    500: '#40405a',
    950: '#000000',
  },
}
SCSS
$custom: #40405a;
$custom-light: #757488;
$custom-dark: #000000;
JSON
{
  "hex": "#40405a",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 90
  },
  "hsl": {
    "h": 240,
    "s": 16.883,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38268,
    "c": 0.04404,
    "h": 284.1
  },
  "luminance": 0.05495
}

Semantic roles & 50–950 ramp

primary
#40405A
secondary
#89896C
accent
#BA6EBA
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080B
muted
#7B7B7C

Preview Lab

Preview with #40405A

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

Preview Lab → · Contrast checker → · Palette generator →

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