#400339#400339

#400339 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.110 H 333.8°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#400339
RGBrgb(64, 3, 57)
HSLhsl(307, 91%, 13%)
HSVhsv(307, 95%, 25%)
CMYKcmyk(0%, 95.3%, 10.9%, 74.9%)
CIE-LABlab(12.29, 34.03, -17.70)
CIE-LCHlch(12.29, 38.36, 332.52°)
OKLaboklab(25.87% 0.0988 -0.0486)
OKLCHoklch(25.87% 0.11 333.8)
XYZxyz(2.8855, 1.4508, 3.9982)
Luminance0.0145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400339 #03400A
analogous
#280340 #400339 #40031A
triadic
#400339 #394003 #033940
tetradic
#400339 #402803 #03400A #031A40
square
#400339 #402803 #03400A #031A40
split-complementary
#400339 #1A4003 #034028
monochromatic
#1D011A #1D011A #400339 #7A066D #B508A1

Accessibility & contrast

On white

16.28
#400339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400339
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400339#FFFFFF#000000##FFFFFF
##4003391.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400339;
/* rgb */ color: rgb(64, 3, 57);
/* oklch */ color: oklch(25.9% 0.110 333.8);
Tailwind
colors: {
  custom: {
    50: '#784d6f',
    500: '#400339',
    950: '#000000',
  },
}
SCSS
$custom: #400339;
$custom-light: #784d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400339",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 306.885,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25867,
    "c": 0.11017,
    "h": 333.8
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #400339

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

Preview Lab → · Contrast checker → · Palette generator →

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