#401F9C#401F9C

#401F9C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.185 H 285.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#401F9C
RGBrgb(64, 31, 156)
HSLhsl(256, 67%, 37%)
HSVhsv(256, 80%, 61%)
CMYKcmyk(59%, 80.1%, 0%, 38.8%)
CIE-LABlab(25.17, 47.05, -61.79)
CIE-LCHlch(25.17, 77.67, 307.29°)
OKLaboklab(37.62% 0.0491 -0.178)
OKLCHoklch(37.62% 0.185 285.4)
XYZxyz(8.6033, 4.4697, 31.8554)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F9C #7B9C1F
analogous
#1F3D9C #401F9C #7F1F9C
triadic
#401F9C #9C401F #1F9C40
tetradic
#401F9C #9C1F3D #7B9C1F #1F9C7F
square
#401F9C #9C1F3D #7B9C1F #1F9C7F
split-complementary
#401F9C #9C7F1F #3D9C1F
monochromatic
#160B36 #2B1569 #401F9C #5529CF #7B58DE

Accessibility & contrast

On white

11.09
#401F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#401F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F9C
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F9C#FFFFFF#000000##FFFFFF
##401F9C1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#0D445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401f9c;
/* rgb */ color: rgb(64, 31, 156);
/* oklch */ color: oklch(37.6% 0.185 285.4);
Tailwind
colors: {
  custom: {
    50: '#8160ba',
    500: '#401f9c',
    950: '#000000',
  },
}
SCSS
$custom: #401f9c;
$custom-light: #8160ba;
$custom-dark: #000000;
JSON
{
  "hex": "#401f9c",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 255.84,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37617,
    "c": 0.18468,
    "h": 285.4
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#401F9C
secondary
#A5C155
accent
#EA3EBC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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