#401658#401658

#401658 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.116 H 310.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#401658
RGBrgb(64, 22, 88)
HSLhsl(278, 60%, 22%)
HSVhsv(278, 75%, 35%)
CMYKcmyk(27.3%, 75%, 0%, 65.5%)
CIE-LABlab(17.31, 32.65, -31.17)
CIE-LCHlch(17.31, 45.14, 316.33°)
OKLaboklab(30.16% 0.0751 -0.0881)
OKLCHoklch(30.16% 0.116 310.4)
XYZxyz(4.1624, 2.3685, 9.4685)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401658 #2E5816
analogous
#1F1658 #401658 #58164F
triadic
#401658 #584016 #165840
tetradic
#401658 #581F16 #2E5816 #164F58
square
#401658 #581F16 #2E5816 #164F58
split-complementary
#401658 #4F5816 #16581F
monochromatic
#120618 #1C0A27 #401658 #642289 #872EBA

Accessibility & contrast

On white

14.25
#401658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401658
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401658#FFFFFF#000000##FFFFFF
##4016581.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#0B2B57
Tritanopia (blue-blind)
#3D2435
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401658;
/* rgb */ color: rgb(64, 22, 88);
/* oklch */ color: oklch(30.2% 0.116 310.4);
Tailwind
colors: {
  custom: {
    50: '#785788',
    500: '#401658',
    950: '#000000',
  },
}
SCSS
$custom: #401658;
$custom-light: #785788;
$custom-dark: #000000;
JSON
{
  "hex": "#401658",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 278.182,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.11576,
    "h": 310.4
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#401658
secondary
#598F3B
accent
#E3457E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401658

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

Preview Lab → · Contrast checker → · Palette generator →

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