#401855#401855

#401855 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.109 H 311.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#401855
RGBrgb(64, 24, 85)
HSLhsl(279, 56%, 21%)
HSVhsv(279, 72%, 33%)
CMYKcmyk(24.7%, 71.8%, 0%, 66.7%)
CIE-LABlab(17.46, 30.87, -28.92)
CIE-LCHlch(17.46, 42.30, 316.86°)
OKLaboklab(30.19% 0.0728 -0.0815)
OKLCHoklch(30.19% 0.109 311.8)
XYZxyz(4.0804, 2.3992, 8.8407)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401855 #2D5518
analogous
#221855 #401855 #55184C
triadic
#401855 #554018 #185540
tetradic
#401855 #552218 #2D5518 #184C55
square
#401855 #552218 #2D5518 #184C55
split-complementary
#401855 #4C5518 #185522
monochromatic
#120718 #1C0B25 #401855 #642585 #8833B4

Accessibility & contrast

On white

14.19
#401855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401855
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401855#FFFFFF#000000##FFFFFF
##4018551.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#122C54
Tritanopia (blue-blind)
#3E2434
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401855;
/* rgb */ color: rgb(64, 24, 85);
/* oklch */ color: oklch(30.2% 0.109 311.8);
Tailwind
colors: {
  custom: {
    50: '#775885',
    500: '#401855',
    950: '#000000',
  },
}
SCSS
$custom: #401855;
$custom-light: #775885;
$custom-dark: #000000;
JSON
{
  "hex": "#401855",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 279.344,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30188,
    "c": 0.10934,
    "h": 311.8
  },
  "luminance": 0.02399
}

Semantic roles & 50–950 ramp

primary
#401855
secondary
#588C3D
accent
#DF497C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401855

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

Preview Lab → · Contrast checker → · Palette generator →

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