#40133A#40133A

#40133A is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.7% C 0.088 H 333.3°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#40133A
RGBrgb(64, 19, 58)
HSLhsl(308, 54%, 16%)
HSVhsv(308, 70%, 25%)
CMYKcmyk(0%, 70.3%, 9.4%, 74.9%)
CIE-LABlab(14.74, 27.43, -14.56)
CIE-LCHlch(14.74, 31.05, 332.04°)
OKLaboklab(27.65% 0.079 -0.0398)
OKLCHoklch(27.65% 0.088 333.3)
XYZxyz(3.1110, 1.8615, 4.1976)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133A #134019
analogous
#301340 #40133A #401324
triadic
#40133A #3A4013 #133A40
tetradic
#40133A #403013 #134019 #132440
square
#40133A #403013 #134019 #132440
split-complementary
#40133A #244013 #134030
monochromatic
#180715 #180715 #40133A #6F2165 #9E2F90

Accessibility & contrast

On white

15.30
#40133A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40133A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40133A
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133A#FFFFFF#000000##FFFFFF
##40133A1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12213B
Deuteranopia (green-blind)
#202739
Tritanopia (blue-blind)
#431624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40133a;
/* rgb */ color: rgb(64, 19, 58);
/* oklch */ color: oklch(27.7% 0.088 333.3);
Tailwind
colors: {
  custom: {
    50: '#775470',
    500: '#40133a',
    950: '#000000',
  },
}
SCSS
$custom: #40133a;
$custom-light: #775470;
$custom-dark: #000000;
JSON
{
  "hex": "#40133a",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 58
  },
  "hsl": {
    "h": 308,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27653,
    "c": 0.08848,
    "h": 333.3
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#40133A
secondary
#36793F
accent
#DE5E4A
background
#F7F5F6
surface
#EDE8EC
border
#C8C4C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40133A

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

Preview Lab → · Contrast checker → · Palette generator →

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