#3A0C53#3A0C53

#3A0C53 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.121 H 310.0°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#3A0C53
RGBrgb(58, 12, 83)
HSLhsl(279, 75%, 19%)
HSVhsv(279, 86%, 33%)
CMYKcmyk(30.1%, 85.5%, 0%, 67.5%)
CIE-LABlab(14.33, 34.63, -32.67)
CIE-LCHlch(14.33, 47.60, 316.67°)
OKLaboklab(27.71% 0.0777 -0.0927)
OKLCHoklch(27.71% 0.121 310)
XYZxyz(3.4374, 1.7871, 8.3458)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C53 #25530C
analogous
#160C53 #3A0C53 #530C48
triadic
#3A0C53 #533A0C #0C533A
tetradic
#3A0C53 #53160C #25530C #0C4853
square
#3A0C53 #53160C #25530C #0C4853
split-complementary
#3A0C53 #48530C #0C5316
monochromatic
#13041B #15041E #3A0C53 #5F1488 #851BBE

Accessibility & contrast

On white

15.47
#3A0C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3A0C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C53
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C53#FFFFFF#000000##FFFFFF
##3A0C531.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#361E30
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0c53;
/* rgb */ color: rgb(58, 12, 83);
/* oklch */ color: oklch(27.7% 0.121 310.0);
Tailwind
colors: {
  custom: {
    50: '#745184',
    500: '#3a0c53',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c53;
$custom-light: #745184;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c53",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 278.873,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27711,
    "c": 0.12096,
    "h": 310
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#3A0C53
secondary
#4F8E2D
accent
#F13678
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0C53

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

Preview Lab → · Contrast checker → · Palette generator →

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