#3A1664#3A1664

#3A1664 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.128 H 299.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#3A1664
RGBrgb(58, 22, 100)
HSLhsl(268, 64%, 24%)
HSVhsv(268, 78%, 39%)
CMYKcmyk(42%, 78%, 0%, 60.8%)
CIE-LABlab(17.43, 34.50, -39.01)
CIE-LCHlch(17.43, 52.08, 311.49°)
OKLaboklab(30.37% 0.0634 -0.1114)
OKLCHoklch(30.37% 0.128 299.7)
XYZxyz(4.3315, 2.3934, 12.2879)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1664 #406416
analogous
#161964 #3A1664 #611664
triadic
#3A1664 #643A16 #16643A
tetradic
#3A1664 #641619 #406416 #166461
square
#3A1664 #641619 #406416 #166461
split-complementary
#3A1664 #646116 #196416
monochromatic
#0F0619 #1D0B32 #3A1664 #572196 #742CC8

Accessibility & contrast

On white

14.20
#3A1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A1664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1664
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1664#FFFFFF#000000##FFFFFF
##3A16641.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#302A3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1664;
/* rgb */ color: rgb(58, 22, 100);
/* oklch */ color: oklch(30.4% 0.128 299.7);
Tailwind
colors: {
  custom: {
    50: '#755791',
    500: '#3a1664',
    950: '#000000',
  },
}
SCSS
$custom: #3a1664;
$custom-light: #755791;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1664",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 267.692,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.12822,
    "h": 299.7
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#3A1664
secondary
#6F9B3B
accent
#E7419A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1664

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

Preview Lab → · Contrast checker → · Palette generator →

#3A1664 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva