#40223E#40223E

#40223E is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.3% C 0.063 H 329.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#40223E
RGBrgb(64, 34, 62)
HSLhsl(304, 31%, 19%)
HSVhsv(304, 47%, 25%)
CMYKcmyk(0%, 46.9%, 3.1%, 74.9%)
CIE-LABlab(18.29, 19.44, -11.87)
CIE-LCHlch(18.29, 22.78, 328.60°)
OKLaboklab(30.34% 0.0546 -0.0323)
OKLCHoklch(30.34% 0.063 329.4)
XYZxyz(3.5558, 2.5820, 4.8676)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40223E #224024
analogous
#332240 #40223E #40222F
triadic
#40223E #3E4022 #223E40
tetradic
#40223E #403322 #224024 #222F40
square
#40223E #403322 #224024 #222F40
split-complementary
#40223E #2F4022 #224033
monochromatic
#140B13 #180D17 #40223E #683765 #904C8B

Accessibility & contrast

On white

13.85
#40223E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40223E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40223E
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40223E#FFFFFF#000000##FFFFFF
##40223E1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A3F
Deuteranopia (green-blind)
#282E3D
Tritanopia (blue-blind)
#42242D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40223e;
/* rgb */ color: rgb(64, 34, 62);
/* oklch */ color: oklch(30.3% 0.063 329.4);
Tailwind
colors: {
  custom: {
    50: '#765e73',
    500: '#40223e',
    950: '#000000',
  },
}
SCSS
$custom: #40223e;
$custom-light: #765e73;
$custom-dark: #000000;
JSON
{
  "hex": "#40223e",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 62
  },
  "hsl": {
    "h": 304,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30343,
    "c": 0.06344,
    "h": 329.4
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#40223E
secondary
#4B734D
accent
#C76861
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080408
muted
#7B797B

Preview Lab

Preview with #40223E

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

Preview Lab → · Contrast checker → · Palette generator →

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