#401B63#401B63

#401B63 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.122 H 303.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#401B63
RGBrgb(64, 27, 99)
HSLhsl(271, 57%, 25%)
HSVhsv(271, 73%, 39%)
CMYKcmyk(35.4%, 72.7%, 0%, 61.2%)
CIE-LABlab(19.12, 32.90, -35.57)
CIE-LCHlch(19.12, 48.46, 312.77°)
OKLaboklab(31.72% 0.0675 -0.1011)
OKLCHoklch(31.72% 0.122 303.7)
XYZxyz(4.7579, 2.7747, 12.0869)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B63 #3E631B
analogous
#1C1B63 #401B63 #631B62
triadic
#401B63 #63401B #1B6340
tetradic
#401B63 #631C1B #3E631B #1B6263
square
#401B63 #631C1B #3E631B #1B6263
split-complementary
#401B63 #62631B #1B631C
monochromatic
#100718 #210E33 #401B63 #5F2893 #7E35C3

Accessibility & contrast

On white

13.50
#401B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B63
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B63#FFFFFF#000000##FFFFFF
##401B631.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#002E61
Tritanopia (blue-blind)
#392B3C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401b63;
/* rgb */ color: rgb(64, 27, 99);
/* oklch */ color: oklch(31.7% 0.122 303.7);
Tailwind
colors: {
  custom: {
    50: '#785a90',
    500: '#401b63',
    950: '#000000',
  },
}
SCSS
$custom: #401b63;
$custom-light: #785a90;
$custom-dark: #000000;
JSON
{
  "hex": "#401b63",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 270.833,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31723,
    "c": 0.12154,
    "h": 303.7
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#401B63
secondary
#6C9841
accent
#E04792
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B63

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

Preview Lab → · Contrast checker → · Palette generator →

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