#400741#400741

#400741 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.8% C 0.112 H 327.4°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#400741
RGBrgb(64, 7, 65)
HSLhsl(299, 81%, 14%)
HSVhsv(299, 89%, 25%)
CMYKcmyk(1.5%, 89.2%, 0%, 74.5%)
CIE-LABlab(13.37, 33.90, -21.67)
CIE-LCHlch(13.37, 40.23, 327.41°)
OKLaboklab(26.81% 0.0941 -0.0602)
OKLCHoklch(26.81% 0.112 327.4)
XYZxyz(3.1444, 1.6238, 5.1478)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400741 #084107
analogous
#230741 #400741 #410725
triadic
#400741 #414007 #074140
tetradic
#400741 #412307 #084107 #072541
square
#400741 #412307 #084107 #072541
split-complementary
#400741 #254107 #074123
monochromatic
#1B031C #1B031C #400741 #760D78 #AD13B0

Accessibility & contrast

On white

15.85
#400741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400741
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400741#FFFFFF#000000##FFFFFF
##4007411.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#172540
Tritanopia (blue-blind)
#421124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400741;
/* rgb */ color: rgb(64, 7, 65);
/* oklch */ color: oklch(26.8% 0.112 327.4);
Tailwind
colors: {
  custom: {
    50: '#774f76',
    500: '#400741',
    950: '#000000',
  },
}
SCSS
$custom: #400741;
$custom-light: #774f76;
$custom-dark: #000000;
JSON
{
  "hex": "#400741",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 298.966,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2681,
    "c": 0.11168,
    "h": 327.4
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#400741
secondary
#258024
accent
#F73134
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400741

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

Preview Lab → · Contrast checker → · Palette generator →

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