#40293D#40293D

#40293D is a dark, muted purple. Relative luminance 0.030; OKLCH L 31.7% C 0.047 H 331.3°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#40293D
RGBrgb(64, 41, 61)
HSLhsl(308, 22%, 21%)
HSVhsv(308, 36%, 25%)
CMYKcmyk(0%, 35.9%, 4.7%, 74.9%)
CIE-LABlab(20.10, 14.62, -8.41)
CIE-LCHlch(20.10, 16.87, 330.10°)
OKLaboklab(31.7% 0.0413 -0.0226)
OKLCHoklch(31.7% 0.047 331.3)
XYZxyz(3.7495, 3.0129, 4.7980)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40293D #29402C
analogous
#372940 #40293D #402931
triadic
#40293D #3D4029 #293D40
tetradic
#40293D #403729 #29402C #293140
square
#40293D #403729 #29402C #293140
split-complementary
#40293D #314029 #294037
monochromatic
#130C12 #1B1119 #40293D #654161 #8B5984

Accessibility & contrast

On white

13.10
#40293D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#40293D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40293D
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40293D#FFFFFF#000000##FFFFFF
##40293D1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282F3E
Deuteranopia (green-blind)
#2E323C
Tritanopia (blue-blind)
#422A30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40293d;
/* rgb */ color: rgb(64, 41, 61);
/* oklch */ color: oklch(31.7% 0.047 331.3);
Tailwind
colors: {
  custom: {
    50: '#756372',
    500: '#40293d',
    950: '#000000',
  },
}
SCSS
$custom: #40293d;
$custom-light: #756372;
$custom-dark: #000000;
JSON
{
  "hex": "#40293d",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 61
  },
  "hsl": {
    "h": 307.826,
    "s": 21.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31695,
    "c": 0.04709,
    "h": 331.3
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#40293D
secondary
#537157
accent
#BE7469
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080508
muted
#7B797B

Preview Lab

Preview with #40293D

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

Preview Lab → · Contrast checker → · Palette generator →

#40293D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva