#3A1474#3A1474

#3A1474 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.149 H 293.9°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#3A1474
RGBrgb(58, 20, 116)
HSLhsl(264, 71%, 27%)
HSVhsv(264, 83%, 45%)
CMYKcmyk(50%, 82.8%, 0%, 54.5%)
CIE-LABlab(18.63, 39.89, -47.48)
CIE-LCHlch(18.63, 62.02, 310.04°)
OKLaboklab(31.68% 0.0605 -0.1363)
OKLCHoklch(31.68% 0.149 293.9)
XYZxyz(5.1466, 2.6606, 16.7620)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1474 #4E7414
analogous
#141E74 #3A1474 #6A1474
triadic
#3A1474 #743A14 #14743A
tetradic
#3A1474 #74141E #4E7414 #14746A
square
#3A1474 #74141E #4E7414 #14746A
split-complementary
#3A1474 #746A14 #1E7414
monochromatic
#0D051A #200B40 #3A1474 #541DA8 #6F28DA

Accessibility & contrast

On white

13.71
#3A1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1474
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1474#FFFFFF#000000##FFFFFF
##3A14741.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#282F44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1474;
/* rgb */ color: rgb(58, 20, 116);
/* oklch */ color: oklch(31.7% 0.149 293.9);
Tailwind
colors: {
  custom: {
    50: '#77579d',
    500: '#3a1474',
    950: '#000000',
  },
}
SCSS
$custom: #3a1474;
$custom-light: #77579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1474",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 263.75,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31676,
    "c": 0.14909,
    "h": 293.9
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#3A1474
secondary
#7EAA3A
accent
#ED3AA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1474

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

Preview Lab → · Contrast checker → · Palette generator →

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