#401757#401757

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

Color values

HEX#401757
RGBrgb(64, 23, 87)
HSLhsl(278, 58%, 22%)
HSVhsv(278, 74%, 34%)
CMYKcmyk(26.4%, 73.6%, 0%, 65.9%)
CIE-LABlab(17.42, 31.89, -30.33)
CIE-LCHlch(17.42, 44.01, 316.44°)
OKLaboklab(30.21% 0.0739 -0.0857)
OKLCHoklch(30.21% 0.113 310.8)
XYZxyz(4.1407, 2.3910, 9.2584)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401757 #2E5717
analogous
#201757 #401757 #57174E
triadic
#401757 #574017 #175740
tetradic
#401757 #572017 #2E5717 #174E57
square
#401757 #572017 #2E5717 #174E57
split-complementary
#401757 #4E5717 #175720
monochromatic
#120618 #1C0A27 #401757 #642487 #8731B8

Accessibility & contrast

On white

14.21
#401757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401757
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401757#FFFFFF#000000##FFFFFF
##4017571.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#0E2B56
Tritanopia (blue-blind)
#3D2435
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401757;
/* rgb */ color: rgb(64, 23, 87);
/* oklch */ color: oklch(30.2% 0.113 310.8);
Tailwind
colors: {
  custom: {
    50: '#785887',
    500: '#401757',
    950: '#000000',
  },
}
SCSS
$custom: #401757;
$custom-light: #785887;
$custom-dark: #000000;
JSON
{
  "hex": "#401757",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 278.438,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30208,
    "c": 0.11317,
    "h": 310.8
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#401757
secondary
#598E3C
accent
#E1467E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401757

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

Preview Lab → · Contrast checker → · Palette generator →

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