#401258#401258

#401258 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.121 H 311.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#401258
RGBrgb(64, 18, 88)
HSLhsl(279, 66%, 21%)
HSVhsv(279, 80%, 35%)
CMYKcmyk(27.3%, 79.5%, 0%, 65.5%)
CIE-LABlab(16.64, 34.56, -32.26)
CIE-LCHlch(16.64, 47.28, 316.97°)
OKLaboklab(29.68% 0.0797 -0.0913)
OKLCHoklch(29.68% 0.121 311.1)
XYZxyz(4.0918, 2.2273, 9.4450)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401258 #2A5812
analogous
#1D1258 #401258 #58124D
triadic
#401258 #584012 #125840
tetradic
#401258 #581D12 #2A5812 #124D58
square
#401258 #581D12 #2A5812 #124D58
split-complementary
#401258 #4D5812 #12581D
monochromatic
#120519 #1B0825 #401258 #651C8B #8A27BE

Accessibility & contrast

On white

14.53
#401258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401258
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401258#FFFFFF#000000##FFFFFF
##4012581.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#062A57
Tritanopia (blue-blind)
#3D2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401258;
/* rgb */ color: rgb(64, 18, 88);
/* oklch */ color: oklch(29.7% 0.121 311.1);
Tailwind
colors: {
  custom: {
    50: '#785588',
    500: '#401258',
    950: '#000000',
  },
}
SCSS
$custom: #401258;
$custom-light: #785588;
$custom-dark: #000000;
JSON
{
  "hex": "#401258",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 279.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29677,
    "c": 0.12118,
    "h": 311.1
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#401258
secondary
#559135
accent
#E93F79
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401258

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

Preview Lab → · Contrast checker → · Palette generator →

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