#42404C#42404C

#42404C is a dark, muted violet. Relative luminance 0.053; OKLCH L 37.8% C 0.020 H 293.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#42404C
RGBrgb(66, 64, 76)
HSLhsl(250, 9%, 27%)
HSVhsv(250, 16%, 30%)
CMYKcmyk(13.2%, 15.8%, 0%, 70.2%)
CIE-LABlab(27.70, 3.66, -6.94)
CIE-LCHlch(27.70, 7.85, 297.82°)
OKLaboklab(37.81% 0.008 -0.0188)
OKLCHoklch(37.81% 0.02 293)
XYZxyz(5.3844, 5.3468, 7.5844)
Luminance0.0535 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42404C #4A4C40
analogous
#40444C #42404C #48404C
triadic
#42404C #4C4240 #404C42
tetradic
#42404C #4C4044 #4A4C40 #404C48
square
#42404C #4C4044 #4A4C40 #404C48
split-complementary
#42404C #4C4840 #444C40
monochromatic
#0E0E11 #25242B #42404C #5F5C6D #7C798E

Accessibility & contrast

On white

10.15
#42404C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#42404C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42404C
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42404C#FFFFFF#000000##FFFFFF
##42404C1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E424D
Deuteranopia (green-blind)
#3E414C
Tritanopia (blue-blind)
#404244
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #42404c;
/* rgb */ color: rgb(66, 64, 76);
/* oklch */ color: oklch(37.8% 0.020 293.0);
Tailwind
colors: {
  custom: {
    50: '#76747e',
    500: '#42404c',
    950: '#000000',
  },
}
SCSS
$custom: #42404c;
$custom-light: #76747e;
$custom-dark: #000000;
JSON
{
  "hex": "#42404c",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 76
  },
  "hsl": {
    "h": 250,
    "s": 8.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3781,
    "c": 0.0204,
    "h": 293
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#42404C
secondary
#797B6D
accent
#B276A8
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#080809
muted
#7B7B7B

Preview Lab

Preview with #42404C

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

Preview Lab → · Contrast checker → · Palette generator →

#42404C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva