#40133F#40133F

#40133F is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.093 H 328.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#40133F
RGBrgb(64, 19, 63)
HSLhsl(301, 54%, 16%)
HSVhsv(301, 70%, 25%)
CMYKcmyk(0%, 70.3%, 1.6%, 74.9%)
CIE-LABlab(15.03, 28.43, -17.63)
CIE-LCHlch(15.03, 33.45, 328.19°)
OKLaboklab(27.96% 0.0797 -0.0486)
OKLCHoklch(27.96% 0.093 328.6)
XYZxyz(3.2444, 1.9148, 4.9004)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133F #134014
analogous
#2B1340 #40133F #401329
triadic
#40133F #3F4013 #133F40
tetradic
#40133F #402B13 #134014 #132940
square
#40133F #402B13 #134014 #132940
split-complementary
#40133F #294013 #13402B
monochromatic
#180717 #180717 #40133F #6F216D #9E2F9C

Accessibility & contrast

On white

15.18
#40133F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40133F
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133F#FFFFFF#000000##FFFFFF
##40133F1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2240
Deuteranopia (green-blind)
#1E283E
Tritanopia (blue-blind)
#421827
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40133f;
/* rgb */ color: rgb(64, 19, 63);
/* oklch */ color: oklch(28.0% 0.093 328.6);
Tailwind
colors: {
  custom: {
    50: '#775474',
    500: '#40133f',
    950: '#000000',
  },
}
SCSS
$custom: #40133f;
$custom-light: #775474;
$custom-dark: #000000;
JSON
{
  "hex": "#40133f",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 63
  },
  "hsl": {
    "h": 301.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27959,
    "c": 0.09333,
    "h": 328.6
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#40133F
secondary
#367938
accent
#DE4D4A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40133F

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

Preview Lab → · Contrast checker → · Palette generator →

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