#401655#401655

#401655 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.9% C 0.112 H 312.2°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#401655
RGBrgb(64, 22, 85)
HSLhsl(280, 59%, 21%)
HSVhsv(280, 74%, 33%)
CMYKcmyk(24.7%, 74.1%, 0%, 66.7%)
CIE-LABlab(17.08, 31.91, -29.52)
CIE-LCHlch(17.08, 43.47, 317.22°)
OKLaboklab(29.92% 0.0754 -0.0833)
OKLCHoklch(29.92% 0.112 312.2)
XYZxyz(4.0407, 2.3198, 8.8275)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401655 #2B5516
analogous
#201655 #401655 #55164A
triadic
#401655 #554016 #165540
tetradic
#401655 #552016 #2B5516 #164A55
square
#401655 #552016 #2B5516 #164A55
split-complementary
#401655 #4A5516 #165520
monochromatic
#120618 #1B0924 #401655 #652386 #892FB6

Accessibility & contrast

On white

14.34
#401655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401655 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401655
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401655#FFFFFF#000000##FFFFFF
##4016551.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#102B54
Tritanopia (blue-blind)
#3E2333
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401655;
/* rgb */ color: rgb(64, 22, 85);
/* oklch */ color: oklch(29.9% 0.112 312.2);
Tailwind
colors: {
  custom: {
    50: '#775785',
    500: '#401655',
    950: '#000000',
  },
}
SCSS
$custom: #401655;
$custom-light: #775785;
$custom-dark: #000000;
JSON
{
  "hex": "#401655",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 280,
    "s": 58.879,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2992,
    "c": 0.11236,
    "h": 312.2
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#401655
secondary
#568C3A
accent
#E2467A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401655

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

Preview Lab → · Contrast checker → · Palette generator →

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