#3A1D98#3A1D98

#3A1D98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.183 H 283.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#3A1D98
RGBrgb(58, 29, 152)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 60%)
CMYKcmyk(61.8%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.82, 46.11, -61.59)
CIE-LCHlch(23.82, 76.94, 306.82°)
OKLaboklab(36.41% 0.0423 -0.1776)
OKLCHoklch(36.41% 0.183 283.4)
XYZxyz(7.8500, 4.0447, 30.0667)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D98 #7B981D
analogous
#1D3E98 #3A1D98 #771D98
triadic
#3A1D98 #983A1D #1D983A
tetradic
#3A1D98 #981D3E #7B981D #1D9877
square
#3A1D98 #981D3E #7B981D #1D9877
split-complementary
#3A1D98 #98771D #3E981D
monochromatic
#130931 #261365 #3A1D98 #4E27CB #7352DE

Accessibility & contrast

On white

11.61
#3A1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D98
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D98#FFFFFF#000000##FFFFFF
##3A1D981.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1d98;
/* rgb */ color: rgb(58, 29, 152);
/* oklch */ color: oklch(36.4% 0.183 283.4);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#3a1d98',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d98;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d98",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 254.146,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.18253,
    "h": 283.4
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#3A1D98
secondary
#A6C150
accent
#EB3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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