#40243E#40243E

#40243E is a dark, muted purple. Relative luminance 0.027; OKLCH L 30.7% C 0.059 H 329.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#40243E
RGBrgb(64, 36, 62)
HSLhsl(304, 28%, 20%)
HSVhsv(304, 44%, 25%)
CMYKcmyk(0%, 43.8%, 3.1%, 74.9%)
CIE-LABlab(18.80, 18.15, -11.08)
CIE-LCHlch(18.80, 21.26, 328.60°)
OKLaboklab(30.73% 0.051 -0.0301)
OKLCHoklch(30.73% 0.059 329.5)
XYZxyz(3.6147, 2.6997, 4.8872)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40243E #244026
analogous
#342440 #40243E #402430
triadic
#40243E #3E4024 #243E40
tetradic
#40243E #403424 #244026 #243040
square
#40243E #403424 #244026 #243040
split-complementary
#40243E #304024 #244034
monochromatic
#140B13 #190E18 #40243E #673A64 #8E508A

Accessibility & contrast

On white

13.64
#40243E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40243E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40243E#FFFFFF#000000##FFFFFF
##40243E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232B3F
Deuteranopia (green-blind)
#2A2F3D
Tritanopia (blue-blind)
#42262E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #40243e;
/* rgb */ color: rgb(64, 36, 62);
/* oklch */ color: oklch(30.7% 0.059 329.5);
Tailwind
colors: {
  custom: {
    50: '#755f73',
    500: '#40243e',
    950: '#000000',
  },
}
SCSS
$custom: #40243e;
$custom-light: #755f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40243e",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 62
  },
  "hsl": {
    "h": 304.286,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30729,
    "c": 0.05917,
    "h": 329.5
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#40243E
secondary
#4D7350
accent
#C46A63
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080408
muted
#7B797B

Preview Lab

Preview with #40243E

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

Preview Lab → · Contrast checker → · Palette generator →

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