#40293F#40293F

#40293F is a dark, muted purple. Relative luminance 0.030; OKLCH L 31.8% C 0.049 H 328.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#40293F
RGBrgb(64, 41, 63)
HSLhsl(303, 22%, 21%)
HSVhsv(303, 36%, 25%)
CMYKcmyk(0%, 35.9%, 1.6%, 74.9%)
CIE-LABlab(20.18, 15.07, -9.65)
CIE-LCHlch(20.18, 17.90, 327.38°)
OKLaboklab(31.79% 0.042 -0.0261)
OKLCHoklch(31.79% 0.049 328.2)
XYZxyz(3.8044, 3.0349, 5.0871)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40293F #29402A
analogous
#352940 #40293F #402933
triadic
#40293F #3F4029 #293F40
tetradic
#40293F #403529 #29402A #293340
square
#40293F #403529 #29402A #293340
split-complementary
#40293F #334029 #294035
monochromatic
#130C12 #1B111A #40293F #654164 #8B5988

Accessibility & contrast

On white

13.07
#40293F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#40293F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40293F
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40293F#FFFFFF#000000##FFFFFF
##40293F1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282F40
Deuteranopia (green-blind)
#2D323E
Tritanopia (blue-blind)
#422B31
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #40293f;
/* rgb */ color: rgb(64, 41, 63);
/* oklch */ color: oklch(31.8% 0.049 328.2);
Tailwind
colors: {
  custom: {
    50: '#756374',
    500: '#40293f',
    950: '#000000',
  },
}
SCSS
$custom: #40293f;
$custom-light: #756374;
$custom-dark: #000000;
JSON
{
  "hex": "#40293f",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 63
  },
  "hsl": {
    "h": 302.609,
    "s": 21.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3179,
    "c": 0.04944,
    "h": 328.2
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#40293F
secondary
#537155
accent
#BE6D69
background
#F7F5F7
surface
#EDEAED
border
#C8C6C8
text
#080508
muted
#7B797B

Preview Lab

Preview with #40293F

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

Preview Lab → · Contrast checker → · Palette generator →

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