#3A1252#3A1252

#3A1252 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.112 H 309.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#3A1252
RGBrgb(58, 18, 82)
HSLhsl(278, 64%, 20%)
HSVhsv(278, 78%, 32%)
CMYKcmyk(29.3%, 78%, 0%, 67.8%)
CIE-LABlab(15.18, 31.71, -30.61)
CIE-LCHlch(15.18, 44.07, 316.01°)
OKLaboklab(28.28% 0.0716 -0.0867)
OKLCHoklch(28.28% 0.112 309.6)
XYZxyz(3.4839, 1.9414, 8.1722)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1252 #2A5212
analogous
#1A1252 #3A1252 #52124A
triadic
#3A1252 #523A12 #12523A
tetradic
#3A1252 #521A12 #2A5212 #124A52
square
#3A1252 #521A12 #2A5212 #124A52
split-complementary
#3A1252 #4A5212 #12521A
monochromatic
#120619 #170720 #3A1252 #5D1D84 #8128B6

Accessibility & contrast

On white

15.13
#3A1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1252
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1252#FFFFFF#000000##FFFFFF
##3A12521.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#372030
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1252;
/* rgb */ color: rgb(58, 18, 82);
/* oklch */ color: oklch(28.3% 0.112 309.6);
Tailwind
colors: {
  custom: {
    50: '#735483',
    500: '#3a1252',
    950: '#000000',
  },
}
SCSS
$custom: #3a1252;
$custom-light: #735483;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1252",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 277.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28284,
    "c": 0.11244,
    "h": 309.6
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#3A1252
secondary
#558B35
accent
#E7417F
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1252

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

Preview Lab → · Contrast checker → · Palette generator →

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