#401B62#401B62

#401B62 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.120 H 304.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#401B62
RGBrgb(64, 27, 98)
HSLhsl(271, 57%, 25%)
HSVhsv(271, 72%, 38%)
CMYKcmyk(34.7%, 72.4%, 0%, 61.6%)
CIE-LABlab(19.04, 32.63, -35.04)
CIE-LCHlch(19.04, 47.88, 312.96°)
OKLaboklab(31.64% 0.0676 -0.0995)
OKLCHoklch(31.64% 0.12 304.2)
XYZxyz(4.7104, 2.7557, 11.8367)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B62 #3D621B
analogous
#1D1B62 #401B62 #621B61
triadic
#401B62 #62401B #1B6240
tetradic
#401B62 #621D1B #3D621B #1B6162
square
#401B62 #621D1B #3D621B #1B6162
split-complementary
#401B62 #61621B #1B621D
monochromatic
#100718 #210E32 #401B62 #5F2892 #7F35C2

Accessibility & contrast

On white

13.54
#401B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B62
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B62#FFFFFF#000000##FFFFFF
##401B621.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#012E60
Tritanopia (blue-blind)
#3A2B3C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401b62;
/* rgb */ color: rgb(64, 27, 98);
/* oklch */ color: oklch(31.6% 0.120 304.2);
Tailwind
colors: {
  custom: {
    50: '#785a8f',
    500: '#401b62',
    950: '#000000',
  },
}
SCSS
$custom: #401b62;
$custom-light: #785a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#401b62",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 271.268,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.12033,
    "h": 304.2
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#401B62
secondary
#6B9841
accent
#E04891
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B62

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

Preview Lab → · Contrast checker → · Palette generator →

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