#401848#401848

#401848 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.3% C 0.094 H 320.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#401848
RGBrgb(64, 24, 72)
HSLhsl(290, 50%, 19%)
HSVhsv(290, 67%, 28%)
CMYKcmyk(11.1%, 66.7%, 0%, 71.8%)
CIE-LABlab(16.56, 27.74, -21.49)
CIE-LCHlch(16.56, 35.09, 322.23°)
OKLaboklab(29.25% 0.073 -0.0598)
OKLCHoklch(29.25% 0.094 320.7)
XYZxyz(3.6105, 2.2113, 6.3663)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401848 #204818
analogous
#281848 #401848 #481838
triadic
#401848 #484018 #184840
tetradic
#401848 #482818 #204818 #183848
square
#401848 #482818 #204818 #183848
split-complementary
#401848 #384818 #184828
monochromatic
#140817 #17091A #401848 #692776 #9237A4

Accessibility & contrast

On white

14.56
#401848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401848
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401848#FFFFFF#000000##FFFFFF
##4018481.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2649
Deuteranopia (green-blind)
#1C2A47
Tritanopia (blue-blind)
#411F2D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401848;
/* rgb */ color: rgb(64, 24, 72);
/* oklch */ color: oklch(29.3% 0.094 320.7);
Tailwind
colors: {
  custom: {
    50: '#77587b',
    500: '#401848',
    950: '#000000',
  },
}
SCSS
$custom: #401848;
$custom-light: #77587b;
$custom-dark: #000000;
JSON
{
  "hex": "#401848",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 72
  },
  "hsl": {
    "h": 290,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2925,
    "c": 0.09439,
    "h": 320.7
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#401848
secondary
#487F3D
accent
#DA4E65
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401848

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

Preview Lab → · Contrast checker → · Palette generator →

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