#401B61#401B61

#401B61 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.6% C 0.119 H 304.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#401B61
RGBrgb(64, 27, 97)
HSLhsl(272, 56%, 24%)
HSVhsv(272, 72%, 38%)
CMYKcmyk(34%, 72.2%, 0%, 62%)
CIE-LABlab(18.96, 32.37, -34.51)
CIE-LCHlch(18.96, 47.31, 313.16°)
OKLaboklab(31.56% 0.0677 -0.098)
OKLCHoklch(31.56% 0.119 304.7)
XYZxyz(4.6635, 2.7369, 11.5895)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B61 #3C611B
analogous
#1D1B61 #401B61 #611B5F
triadic
#401B61 #61401B #1B6140
tetradic
#401B61 #611D1B #3C611B #1B5F61
square
#401B61 #611D1B #3C611B #1B5F61
split-complementary
#401B61 #5F611B #1B611D
monochromatic
#100718 #200E31 #401B61 #602891 #7F36C1

Accessibility & contrast

On white

13.57
#401B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B61
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B61#FFFFFF#000000##FFFFFF
##401B611.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D63
Deuteranopia (green-blind)
#032E5F
Tritanopia (blue-blind)
#3A2B3B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401b61;
/* rgb */ color: rgb(64, 27, 97);
/* oklch */ color: oklch(31.6% 0.119 304.7);
Tailwind
colors: {
  custom: {
    50: '#785a8e',
    500: '#401b61',
    950: '#000000',
  },
}
SCSS
$custom: #401b61;
$custom-light: #785a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#401b61",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 271.714,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31558,
    "c": 0.11912,
    "h": 304.7
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#401B61
secondary
#699741
accent
#E04890
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B61

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

Preview Lab → · Contrast checker → · Palette generator →

#401B61 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva