#3A1663#3A1663

#3A1663 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.127 H 300.1°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#3A1663
RGBrgb(58, 22, 99)
HSLhsl(268, 64%, 24%)
HSVhsv(268, 78%, 39%)
CMYKcmyk(41.4%, 77.8%, 0%, 61.2%)
CIE-LABlab(17.34, 34.23, -38.50)
CIE-LCHlch(17.34, 51.51, 311.64°)
OKLaboklab(30.27% 0.0637 -0.1099)
OKLCHoklch(30.27% 0.127 300.1)
XYZxyz(4.2834, 2.3742, 12.0346)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1663 #3F6316
analogous
#161863 #3A1663 #601663
triadic
#3A1663 #633A16 #16633A
tetradic
#3A1663 #631618 #3F6316 #166360
square
#3A1663 #631618 #3F6316 #166360
split-complementary
#3A1663 #636016 #186316
monochromatic
#0F0619 #1D0B31 #3A1663 #572195 #752CC7

Accessibility & contrast

On white

14.24
#3A1663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A1663 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1663
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1663#FFFFFF#000000##FFFFFF
##3A16631.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#31293B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1663;
/* rgb */ color: rgb(58, 22, 99);
/* oklch */ color: oklch(30.3% 0.127 300.1);
Tailwind
colors: {
  custom: {
    50: '#755790',
    500: '#3a1663',
    950: '#000000',
  },
}
SCSS
$custom: #3a1663;
$custom-light: #755790;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1663",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 268.052,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30274,
    "c": 0.12702,
    "h": 300.1
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#3A1663
secondary
#6D9A3B
accent
#E74199
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3A1663

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

Preview Lab → · Contrast checker → · Palette generator →

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