#40133D#40133D

#40133D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.091 H 330.4°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#40133D
RGBrgb(64, 19, 61)
HSLhsl(304, 54%, 16%)
HSVhsv(304, 70%, 25%)
CMYKcmyk(0%, 70.3%, 4.7%, 74.9%)
CIE-LABlab(14.91, 28.02, -16.41)
CIE-LCHlch(14.91, 32.47, 329.64°)
OKLaboklab(27.83% 0.0795 -0.0451)
OKLCHoklch(27.83% 0.091 330.4)
XYZxyz(3.1895, 1.8929, 4.6113)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133D #134016
analogous
#2D1340 #40133D #401327
triadic
#40133D #3D4013 #133D40
tetradic
#40133D #402D13 #134016 #132740
square
#40133D #402D13 #134016 #132740
split-complementary
#40133D #274013 #13402D
monochromatic
#180716 #180716 #40133D #6F216A #9E2F97

Accessibility & contrast

On white

15.23
#40133D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40133D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40133D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133D#FFFFFF#000000##FFFFFF
##40133D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10223E
Deuteranopia (green-blind)
#1F283C
Tritanopia (blue-blind)
#431825
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40133d;
/* rgb */ color: rgb(64, 19, 61);
/* oklch */ color: oklch(27.8% 0.091 330.4);
Tailwind
colors: {
  custom: {
    50: '#775472',
    500: '#40133d',
    950: '#000000',
  },
}
SCSS
$custom: #40133d;
$custom-light: #775472;
$custom-dark: #000000;
JSON
{
  "hex": "#40133d",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 61
  },
  "hsl": {
    "h": 304,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27834,
    "c": 0.09136,
    "h": 330.4
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#40133D
secondary
#36793B
accent
#DE544A
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40133D

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

Preview Lab → · Contrast checker → · Palette generator →

#40133D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva