#40133B#40133B

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

Color values

HEX#40133B
RGBrgb(64, 19, 59)
HSLhsl(307, 54%, 16%)
HSVhsv(307, 70%, 25%)
CMYKcmyk(0%, 70.3%, 7.8%, 74.9%)
CIE-LABlab(14.80, 27.62, -15.18)
CIE-LCHlch(14.80, 31.52, 331.21°)
OKLaboklab(27.71% 0.0792 -0.0415)
OKLCHoklch(27.71% 0.089 332.3)
XYZxyz(3.1366, 1.8717, 4.3329)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133B #134018
analogous
#2F1340 #40133B #401325
triadic
#40133B #3B4013 #133B40
tetradic
#40133B #402F13 #134018 #132540
square
#40133B #402F13 #134018 #132540
split-complementary
#40133B #254013 #13402F
monochromatic
#180716 #180716 #40133B #6F2167 #9E2F92

Accessibility & contrast

On white

15.28
#40133B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40133B
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133B#FFFFFF#000000##FFFFFF
##40133B1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11213C
Deuteranopia (green-blind)
#20283A
Tritanopia (blue-blind)
#431724
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40133b;
/* rgb */ color: rgb(64, 19, 59);
/* oklch */ color: oklch(27.7% 0.089 332.3);
Tailwind
colors: {
  custom: {
    50: '#775471',
    500: '#40133b',
    950: '#000000',
  },
}
SCSS
$custom: #40133b;
$custom-light: #775471;
$custom-dark: #000000;
JSON
{
  "hex": "#40133b",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 59
  },
  "hsl": {
    "h": 306.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27712,
    "c": 0.08942,
    "h": 332.3
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#40133B
secondary
#36793E
accent
#DE5B4A
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40133B

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

Preview Lab → · Contrast checker → · Palette generator →

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