#401863#401863

#401863 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.126 H 304.4°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#401863
RGBrgb(64, 24, 99)
HSLhsl(272, 61%, 24%)
HSVhsv(272, 76%, 39%)
CMYKcmyk(35.4%, 75.8%, 0%, 61.2%)
CIE-LABlab(18.56, 34.47, -36.48)
CIE-LCHlch(18.56, 50.19, 313.38°)
OKLaboklab(31.32% 0.071 -0.1038)
OKLCHoklch(31.32% 0.126 304.4)
XYZxyz(4.6926, 2.6441, 12.0651)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401863 #3B6318
analogous
#1B1863 #401863 #631861
triadic
#401863 #634018 #186340
tetradic
#401863 #631B18 #3B6318 #186163
square
#401863 #631B18 #3B6318 #186163
split-complementary
#401863 #616318 #18631B
monochromatic
#100619 #200C32 #401863 #602494 #8030C6

Accessibility & contrast

On white

13.74
#401863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401863
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401863#FFFFFF#000000##FFFFFF
##4018631.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#392A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401863;
/* rgb */ color: rgb(64, 24, 99);
/* oklch */ color: oklch(31.3% 0.126 304.4);
Tailwind
colors: {
  custom: {
    50: '#795990',
    500: '#401863',
    950: '#000000',
  },
}
SCSS
$custom: #401863;
$custom-light: #795990;
$custom-dark: #000000;
JSON
{
  "hex": "#401863",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 272,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31324,
    "c": 0.1257,
    "h": 304.4
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#401863
secondary
#68993E
accent
#E4448F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401863

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

Preview Lab → · Contrast checker → · Palette generator →

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