#401758#401758

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

Color values

HEX#401758
RGBrgb(64, 23, 88)
HSLhsl(278, 59%, 22%)
HSVhsv(278, 74%, 35%)
CMYKcmyk(27.3%, 73.9%, 0%, 65.5%)
CIE-LABlab(17.50, 32.14, -30.88)
CIE-LCHlch(17.50, 44.57, 316.15°)
OKLaboklab(30.29% 0.0738 -0.0873)
OKLCHoklch(30.29% 0.114 310.2)
XYZxyz(4.1819, 2.4075, 9.4750)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401758 #2F5817
analogous
#201758 #401758 #581750
triadic
#401758 #584017 #175840
tetradic
#401758 #582017 #2F5817 #175058
square
#401758 #582017 #2F5817 #175058
split-complementary
#401758 #505817 #175820
monochromatic
#120618 #1D0A27 #401758 #632489 #8730B9

Accessibility & contrast

On white

14.18
#401758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401758
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401758#FFFFFF#000000##FFFFFF
##4017581.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#0D2C57
Tritanopia (blue-blind)
#3D2535
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401758;
/* rgb */ color: rgb(64, 23, 88);
/* oklch */ color: oklch(30.3% 0.114 310.2);
Tailwind
colors: {
  custom: {
    50: '#785888',
    500: '#401758',
    950: '#000000',
  },
}
SCSS
$custom: #401758;
$custom-light: #785888;
$custom-dark: #000000;
JSON
{
  "hex": "#401758",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 277.846,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30287,
    "c": 0.11432,
    "h": 310.2
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#401758
secondary
#5B8F3C
accent
#E24680
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401758

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

Preview Lab → · Contrast checker → · Palette generator →

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