#40293E#40293E

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

Color values

HEX#40293E
RGBrgb(64, 41, 62)
HSLhsl(305, 22%, 21%)
HSVhsv(305, 36%, 25%)
CMYKcmyk(0%, 35.9%, 3.1%, 74.9%)
CIE-LABlab(20.14, 14.85, -9.03)
CIE-LCHlch(20.14, 17.38, 328.70°)
OKLaboklab(31.74% 0.0417 -0.0244)
OKLCHoklch(31.74% 0.048 329.7)
XYZxyz(3.7767, 3.0238, 4.9412)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40293E #29402B
analogous
#362940 #40293E #402932
triadic
#40293E #3E4029 #293E40
tetradic
#40293E #403629 #29402B #293240
square
#40293E #403629 #29402B #293240
split-complementary
#40293E #324029 #294036
monochromatic
#130C12 #1B111A #40293E #654162 #8B5986

Accessibility & contrast

On white

13.09
#40293E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40293E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40293E#FFFFFF#000000##FFFFFF
##40293E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40293e;
/* rgb */ color: rgb(64, 41, 62);
/* oklch */ color: oklch(31.7% 0.048 329.7);
Tailwind
colors: {
  custom: {
    50: '#756373',
    500: '#40293e',
    950: '#000000',
  },
}
SCSS
$custom: #40293e;
$custom-light: #756373;
$custom-dark: #000000;
JSON
{
  "hex": "#40293e",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 62
  },
  "hsl": {
    "h": 305.217,
    "s": 21.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31742,
    "c": 0.04825,
    "h": 329.7
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#40293E
secondary
#537156
accent
#BE7169
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080508
muted
#7B797B

Preview Lab

Preview with #40293E

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

Preview Lab → · Contrast checker → · Palette generator →

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