#400341#400341

#400341 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.117 H 327.5°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#400341
RGBrgb(64, 3, 65)
HSLhsl(299, 91%, 13%)
HSVhsv(299, 95%, 25%)
CMYKcmyk(1.5%, 95.4%, 0%, 74.5%)
CIE-LABlab(12.84, 35.45, -22.52)
CIE-LCHlch(12.84, 42.00, 327.57°)
OKLaboklab(26.43% 0.0984 -0.0627)
OKLCHoklch(26.43% 0.117 327.5)
XYZxyz(3.1010, 1.5370, 5.1333)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400341 #044103
analogous
#210341 #400341 #410323
triadic
#400341 #414003 #034140
tetradic
#400341 #412103 #044103 #032341
square
#400341 #412103 #044103 #032341
split-complementary
#400341 #234103 #034121
monochromatic
#1D011D #1D011D #400341 #7A067B #B308B6

Accessibility & contrast

On white

16.06
#400341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400341
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400341#FFFFFF#000000##FFFFFF
##4003411.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#152440
Tritanopia (blue-blind)
#420F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400341;
/* rgb */ color: rgb(64, 3, 65);
/* oklch */ color: oklch(26.4% 0.117 327.5);
Tailwind
colors: {
  custom: {
    50: '#784d76',
    500: '#400341',
    950: '#000000',
  },
}
SCSS
$custom: #400341;
$custom-light: #784d76;
$custom-dark: #000000;
JSON
{
  "hex": "#400341",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 299.032,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26433,
    "c": 0.11668,
    "h": 327.5
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#400341
secondary
#1F831D
accent
#FF292C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400341

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

Preview Lab → · Contrast checker → · Palette generator →

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