#401954#401954

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

Color values

HEX#401954
RGBrgb(64, 25, 84)
HSLhsl(280, 54%, 21%)
HSVhsv(280, 70%, 33%)
CMYKcmyk(23.8%, 70.2%, 0%, 67.1%)
CIE-LABlab(17.58, 30.08, -28.05)
CIE-LCHlch(17.58, 41.13, 317.00°)
OKLaboklab(30.25% 0.0716 -0.079)
OKLCHoklch(30.25% 0.107 312.2)
XYZxyz(4.0619, 2.4254, 8.6400)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401954 #2D5419
analogous
#231954 #401954 #54194B
triadic
#401954 #544019 #195440
tetradic
#401954 #542319 #2D5419 #194B54
square
#401954 #542319 #2D5419 #194B54
split-complementary
#401954 #4B5419 #195423
monochromatic
#120718 #1C0B25 #401954 #642783 #8835B2

Accessibility & contrast

On white

14.14
#401954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401954
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401954#FFFFFF#000000##FFFFFF
##4019541.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#142C53
Tritanopia (blue-blind)
#3E2534
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401954;
/* rgb */ color: rgb(64, 25, 84);
/* oklch */ color: oklch(30.3% 0.107 312.2);
Tailwind
colors: {
  custom: {
    50: '#775984',
    500: '#401954',
    950: '#000000',
  },
}
SCSS
$custom: #401954;
$custom-light: #775984;
$custom-dark: #000000;
JSON
{
  "hex": "#401954",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 279.661,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.1066,
    "h": 312.2
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#401954
secondary
#588A3E
accent
#DD4A7C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401954

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

Preview Lab → · Contrast checker → · Palette generator →

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