#40133E#40133E

#40133E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.092 H 329.5°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#40133E
RGBrgb(64, 19, 62)
HSLhsl(303, 54%, 16%)
HSVhsv(303, 70%, 25%)
CMYKcmyk(0%, 70.3%, 3.1%, 74.9%)
CIE-LABlab(14.97, 28.22, -17.02)
CIE-LCHlch(14.97, 32.96, 328.90°)
OKLaboklab(27.9% 0.0796 -0.0468)
OKLCHoklch(27.9% 0.092 329.5)
XYZxyz(3.2167, 1.9038, 4.7545)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133E #134015
analogous
#2C1340 #40133E #401328
triadic
#40133E #3E4013 #133E40
tetradic
#40133E #402C13 #134015 #132840
square
#40133E #402C13 #134015 #132840
split-complementary
#40133E #284013 #13402C
monochromatic
#180717 #180717 #40133E #6F216C #9E2F99

Accessibility & contrast

On white

15.21
#40133E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40133E
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133E#FFFFFF#000000##FFFFFF
##40133E1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F223F
Deuteranopia (green-blind)
#1F283D
Tritanopia (blue-blind)
#421826
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40133e;
/* rgb */ color: rgb(64, 19, 62);
/* oklch */ color: oklch(27.9% 0.092 329.5);
Tailwind
colors: {
  custom: {
    50: '#775473',
    500: '#40133e',
    950: '#000000',
  },
}
SCSS
$custom: #40133e;
$custom-light: #775473;
$custom-dark: #000000;
JSON
{
  "hex": "#40133e",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 62
  },
  "hsl": {
    "h": 302.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27896,
    "c": 0.09234,
    "h": 329.5
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#40133E
secondary
#367939
accent
#DE514A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40133E

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

Preview Lab → · Contrast checker → · Palette generator →

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