#401955#401955

#401955 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.108 H 311.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#401955
RGBrgb(64, 25, 85)
HSLhsl(279, 55%, 22%)
HSVhsv(279, 71%, 33%)
CMYKcmyk(24.7%, 70.6%, 0%, 66.7%)
CIE-LABlab(17.65, 30.33, -28.61)
CIE-LCHlch(17.65, 41.69, 316.67°)
OKLaboklab(30.33% 0.0715 -0.0806)
OKLCHoklch(30.33% 0.108 311.6)
XYZxyz(4.1014, 2.4412, 8.8477)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401955 #2E5519
analogous
#221955 #401955 #55194C
triadic
#401955 #554019 #195540
tetradic
#401955 #552219 #2E5519 #194C55
square
#401955 #552219 #2E5519 #194C55
split-complementary
#401955 #4C5519 #195522
monochromatic
#120718 #1C0B26 #401955 #642784 #8735B4

Accessibility & contrast

On white

14.11
#401955 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401955 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401955
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401955#FFFFFF#000000##FFFFFF
##4019551.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401955;
/* rgb */ color: rgb(64, 25, 85);
/* oklch */ color: oklch(30.3% 0.108 311.6);
Tailwind
colors: {
  custom: {
    50: '#775985',
    500: '#401955',
    950: '#000000',
  },
}
SCSS
$custom: #401955;
$custom-light: #775985;
$custom-dark: #000000;
JSON
{
  "hex": "#401955",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 85
  },
  "hsl": {
    "h": 279,
    "s": 54.545,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.10777,
    "h": 311.6
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#401955
secondary
#598B3E
accent
#DE4A7E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401955

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

Preview Lab → · Contrast checker → · Palette generator →

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