#40123E#40123E

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

Color values

HEX#40123E
RGBrgb(64, 18, 62)
HSLhsl(303, 56%, 16%)
HSVhsv(303, 72%, 25%)
CMYKcmyk(0%, 71.9%, 3.1%, 74.9%)
CIE-LABlab(14.79, 28.72, -17.31)
CIE-LCHlch(14.79, 33.54, 328.93°)
OKLaboklab(27.77% 0.081 -0.0477)
OKLCHoklch(27.77% 0.094 329.5)
XYZxyz(3.2001, 1.8706, 4.7490)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40123E #124014
analogous
#2B1240 #40123E #401227
triadic
#40123E #3E4012 #123E40
tetradic
#40123E #402B12 #124014 #122740
square
#40123E #402B12 #124014 #122740
split-complementary
#40123E #274012 #12402B
monochromatic
#180717 #180717 #40123E #701F6C #A02D9B

Accessibility & contrast

On white

15.28
#40123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40123E
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40123E#FFFFFF#000000##FFFFFF
##40123E1.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)
#0E213F
Deuteranopia (green-blind)
#1E273D
Tritanopia (blue-blind)
#421726
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40123e;
/* rgb */ color: rgb(64, 18, 62);
/* oklch */ color: oklch(27.8% 0.094 329.5);
Tailwind
colors: {
  custom: {
    50: '#775473',
    500: '#40123e',
    950: '#000000',
  },
}
SCSS
$custom: #40123e;
$custom-light: #775473;
$custom-dark: #000000;
JSON
{
  "hex": "#40123e",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 302.609,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27765,
    "c": 0.09398,
    "h": 329.5
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#40123E
secondary
#357938
accent
#DF4F48
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40123E

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

Preview Lab → · Contrast checker → · Palette generator →

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