#401657#401657

#401657 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.115 H 311.0°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#401657
RGBrgb(64, 22, 87)
HSLhsl(279, 60%, 21%)
HSVhsv(279, 75%, 34%)
CMYKcmyk(26.4%, 74.7%, 0%, 65.9%)
CIE-LABlab(17.24, 32.40, -30.62)
CIE-LCHlch(17.24, 44.58, 316.61°)
OKLaboklab(30.08% 0.0752 -0.0865)
OKLCHoklch(30.08% 0.115 311)
XYZxyz(4.1212, 2.3520, 9.2519)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401657 #2D5716
analogous
#201657 #401657 #57164E
triadic
#401657 #574016 #165740
tetradic
#401657 #572016 #2D5716 #164E57
square
#401657 #572016 #2D5716 #164E57
split-complementary
#401657 #4E5716 #165720
monochromatic
#120618 #1C0A26 #401657 #642288 #882FB9

Accessibility & contrast

On white

14.28
#401657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401657
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401657#FFFFFF#000000##FFFFFF
##4016571.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#0D2B56
Tritanopia (blue-blind)
#3D2434
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401657;
/* rgb */ color: rgb(64, 22, 87);
/* oklch */ color: oklch(30.1% 0.115 311.0);
Tailwind
colors: {
  custom: {
    50: '#785787',
    500: '#401657',
    950: '#000000',
  },
}
SCSS
$custom: #401657;
$custom-light: #785787;
$custom-dark: #000000;
JSON
{
  "hex": "#401657",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 278.769,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30078,
    "c": 0.11463,
    "h": 311
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#401657
secondary
#588E3A
accent
#E3457D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401657

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

Preview Lab → · Contrast checker → · Palette generator →

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