#400239#400239

#400239 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.112 H 333.8°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#400239
RGBrgb(64, 2, 57)
HSLhsl(307, 94%, 13%)
HSVhsv(307, 97%, 25%)
CMYKcmyk(0%, 96.9%, 10.9%, 74.9%)
CIE-LABlab(12.15, 34.45, -17.92)
CIE-LCHlch(12.15, 38.83, 332.51°)
OKLaboklab(25.77% 0.1001 -0.0493)
OKLCHoklch(25.77% 0.112 333.8)
XYZxyz(2.8746, 1.4291, 3.9945)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400239 #024009
analogous
#280240 #400239 #40021A
triadic
#400239 #394002 #023940
tetradic
#400239 #402802 #024009 #021A40
square
#400239 #402802 #024009 #021A40
split-complementary
#400239 #1A4002 #024028
monochromatic
#1E011A #1E011A #400239 #7B046E #B706A3

Accessibility & contrast

On white

16.33
#400239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400239
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400239#FFFFFF#000000##FFFFFF
##4002391.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#1A2338
Tritanopia (blue-blind)
#44091E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400239;
/* rgb */ color: rgb(64, 2, 57);
/* oklch */ color: oklch(25.8% 0.112 333.8);
Tailwind
colors: {
  custom: {
    50: '#784d6f',
    500: '#400239',
    950: '#000000',
  },
}
SCSS
$custom: #400239;
$custom-light: #784d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400239",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 306.774,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.25767,
    "c": 0.11156,
    "h": 333.8
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#400239
secondary
#1B8327
accent
#FF4129
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400239

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

Preview Lab → · Contrast checker → · Palette generator →

#400239 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva