#400346#400346

#400346 is a dark, vivid purple. Relative luminance 0.016; OKLCH L 26.8% C 0.121 H 323.9°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#400346
RGBrgb(64, 3, 70)
HSLhsl(295, 92%, 14%)
HSVhsv(295, 96%, 27%)
CMYKcmyk(8.6%, 95.7%, 0%, 72.5%)
CIE-LABlab(13.21, 36.40, -25.44)
CIE-LCHlch(13.21, 44.41, 325.05°)
OKLaboklab(26.81% 0.0977 -0.0712)
OKLCHoklch(26.81% 0.121 323.9)
XYZxyz(3.2523, 1.5975, 5.9302)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400346 #094603
analogous
#1F0346 #400346 #46032B
triadic
#400346 #464003 #034640
tetradic
#400346 #461F03 #094603 #032B46
square
#400346 #461F03 #094603 #032B46
split-complementary
#400346 #2B4603 #03461F
monochromatic
#1B011D #1B011D #400346 #760681 #AB08BB

Accessibility & contrast

On white

15.92
#400346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400346
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400346#FFFFFF#000000##FFFFFF
##4003461.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#112445
Tritanopia (blue-blind)
#411226
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400346;
/* rgb */ color: rgb(64, 3, 70);
/* oklch */ color: oklch(26.8% 0.121 323.9);
Tailwind
colors: {
  custom: {
    50: '#784e7a',
    500: '#400346',
    950: '#000000',
  },
}
SCSS
$custom: #400346;
$custom-light: #784e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400346",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 294.627,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26814,
    "c": 0.12091,
    "h": 323.9
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#400346
secondary
#27871D
accent
#FF293C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400346

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

Preview Lab → · Contrast checker → · Palette generator →

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