#3A0948#3A0948

#3A0948 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.113 H 317.2°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#3A0948
RGBrgb(58, 9, 72)
HSLhsl(287, 78%, 16%)
HSVhsv(287, 88%, 28%)
CMYKcmyk(19.4%, 87.5%, 0%, 71.8%)
CIE-LABlab(13.00, 33.22, -27.24)
CIE-LCHlch(13.00, 42.96, 320.65°)
OKLaboklab(26.49% 0.083 -0.0767)
OKLCHoklch(26.49% 0.113 317.2)
XYZxyz(3.0121, 1.5629, 6.2726)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0948 #174809
analogous
#1A0948 #3A0948 #480936
triadic
#3A0948 #483A09 #09483A
tetradic
#3A0948 #481A09 #174809 #093648
square
#3A0948 #481A09 #174809 #093648
split-complementary
#3A0948 #364809 #09481A
monochromatic
#16031B #16031B #3A0948 #66107E #9217B5

Accessibility & contrast

On white

16.00
#3A0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3A0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0948
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0948#FFFFFF#000000##FFFFFF
##3A09481.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#391729
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0948;
/* rgb */ color: rgb(58, 9, 72);
/* oklch */ color: oklch(26.5% 0.113 317.2);
Tailwind
colors: {
  custom: {
    50: '#734f7b',
    500: '#3a0948',
    950: '#000000',
  },
}
SCSS
$custom: #3a0948;
$custom-light: #734f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0948",
  "rgb": {
    "r": 58,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 286.667,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26489,
    "c": 0.11303,
    "h": 317.2
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#3A0948
secondary
#3C8527
accent
#F4345E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0948

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

Preview Lab → · Contrast checker → · Palette generator →

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