#401259#401259

#401259 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.122 H 310.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#401259
RGBrgb(64, 18, 89)
HSLhsl(279, 66%, 21%)
HSVhsv(279, 80%, 35%)
CMYKcmyk(28.1%, 79.8%, 0%, 65.1%)
CIE-LABlab(16.72, 34.80, -32.80)
CIE-LCHlch(16.72, 47.82, 316.69°)
OKLaboklab(29.76% 0.0795 -0.0929)
OKLCHoklch(29.76% 0.122 310.5)
XYZxyz(4.1335, 2.2440, 9.6646)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401259 #2B5912
analogous
#1C1259 #401259 #59124E
triadic
#401259 #594012 #125940
tetradic
#401259 #591C12 #2B5912 #124E59
square
#401259 #591C12 #2B5912 #124E59
split-complementary
#401259 #4E5912 #12591C
monochromatic
#120519 #1B0826 #401259 #651C8C #8927BF

Accessibility & contrast

On white

14.49
#401259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401259
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401259#FFFFFF#000000##FFFFFF
##4012591.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#042A58
Tritanopia (blue-blind)
#3D2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401259;
/* rgb */ color: rgb(64, 18, 89);
/* oklch */ color: oklch(29.8% 0.122 310.5);
Tailwind
colors: {
  custom: {
    50: '#785588',
    500: '#401259',
    950: '#000000',
  },
}
SCSS
$custom: #401259;
$custom-light: #785588;
$custom-dark: #000000;
JSON
{
  "hex": "#401259",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 278.873,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2976,
    "c": 0.12226,
    "h": 310.5
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#401259
secondary
#569235
accent
#E93F7B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401259

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

Preview Lab → · Contrast checker → · Palette generator →

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