#401B65#401B65

#401B65 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.124 H 302.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#401B65
RGBrgb(64, 27, 101)
HSLhsl(270, 58%, 25%)
HSVhsv(270, 73%, 40%)
CMYKcmyk(36.6%, 73.3%, 0%, 60.4%)
CIE-LABlab(19.28, 33.44, -36.62)
CIE-LCHlch(19.28, 49.60, 312.40°)
OKLaboklab(31.89% 0.0671 -0.1042)
OKLCHoklch(31.89% 0.124 302.8)
XYZxyz(4.8547, 2.8134, 12.5967)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B65 #40651B
analogous
#1B1B65 #401B65 #651B65
triadic
#401B65 #65401B #1B6540
tetradic
#401B65 #651B1B #40651B #1B6565
square
#401B65 #651B1B #40651B #1B6565
split-complementary
#401B65 #65651B #1B651B
monochromatic
#0F0618 #210E35 #401B65 #5F2895 #7D35C6

Accessibility & contrast

On white

13.44
#401B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B65
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B65#FFFFFF#000000##FFFFFF
##401B651.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#002F63
Tritanopia (blue-blind)
#392C3D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401b65;
/* rgb */ color: rgb(64, 27, 101);
/* oklch */ color: oklch(31.9% 0.124 302.8);
Tailwind
colors: {
  custom: {
    50: '#795b91',
    500: '#401b65',
    950: '#000000',
  },
}
SCSS
$custom: #401b65;
$custom-light: #795b91;
$custom-dark: #000000;
JSON
{
  "hex": "#401b65",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 270,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31891,
    "c": 0.12396,
    "h": 302.8
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#401B65
secondary
#6E9A41
accent
#E14794
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B65

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

Preview Lab → · Contrast checker → · Palette generator →

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