#40243C#40243C

#40243C is a dark, muted purple. Relative luminance 0.027; OKLCH L 30.6% C 0.057 H 332.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#40243C
RGBrgb(64, 36, 60)
HSLhsl(309, 28%, 20%)
HSVhsv(309, 44%, 25%)
CMYKcmyk(0%, 43.8%, 6.2%, 74.9%)
CIE-LABlab(18.71, 17.71, -9.84)
CIE-LCHlch(18.71, 20.26, 330.95°)
OKLaboklab(30.63% 0.0503 -0.0266)
OKLCHoklch(30.63% 0.057 332.2)
XYZxyz(3.5608, 2.6782, 4.6035)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40243C #244028
analogous
#362440 #40243C #40242E
triadic
#40243C #3C4024 #243C40
tetradic
#40243C #403624 #244028 #242E40
square
#40243C #403624 #244028 #242E40
split-complementary
#40243C #2E4024 #244036
monochromatic
#140B12 #190E17 #40243C #673A61 #8E5085

Accessibility & contrast

On white

13.68
#40243C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#40243C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40243C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40243C#FFFFFF#000000##FFFFFF
##40243C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232B3D
Deuteranopia (green-blind)
#2B2F3B
Tritanopia (blue-blind)
#42262D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #40243c;
/* rgb */ color: rgb(64, 36, 60);
/* oklch */ color: oklch(30.6% 0.057 332.2);
Tailwind
colors: {
  custom: {
    50: '#755f71',
    500: '#40243c',
    950: '#000000',
  },
}
SCSS
$custom: #40243c;
$custom-light: #755f71;
$custom-dark: #000000;
JSON
{
  "hex": "#40243c",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 60
  },
  "hsl": {
    "h": 308.571,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30628,
    "c": 0.05691,
    "h": 332.2
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#40243C
secondary
#4D7352
accent
#C47163
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080407
muted
#7B797A

Preview Lab

Preview with #40243C

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

Preview Lab → · Contrast checker → · Palette generator →

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