#3A0C52#3A0C52

#3A0C52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.120 H 310.5°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#3A0C52
RGBrgb(58, 12, 82)
HSLhsl(279, 74%, 18%)
HSVhsv(279, 85%, 32%)
CMYKcmyk(29.3%, 85.4%, 0%, 67.8%)
CIE-LABlab(14.24, 34.38, -32.13)
CIE-LCHlch(14.24, 47.06, 316.94°)
OKLaboklab(27.62% 0.078 -0.0911)
OKLCHoklch(27.62% 0.12 310.5)
XYZxyz(3.3991, 1.7718, 8.1439)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C52 #24520C
analogous
#170C52 #3A0C52 #520C47
triadic
#3A0C52 #523A0C #0C523A
tetradic
#3A0C52 #52170C #24520C #0C4752
square
#3A0C52 #52170C #24520C #0C4752
split-complementary
#3A0C52 #47520C #0C5217
monochromatic
#13041B #14041D #3A0C52 #601487 #861CBD

Accessibility & contrast

On white

15.51
#3A0C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C52
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C52#FFFFFF#000000##FFFFFF
##3A0C521.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#371D2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0c52;
/* rgb */ color: rgb(58, 12, 82);
/* oklch */ color: oklch(27.6% 0.120 310.5);
Tailwind
colors: {
  custom: {
    50: '#745183',
    500: '#3a0c52',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c52;
$custom-light: #745183;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c52",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 279.429,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27623,
    "c": 0.11991,
    "h": 310.5
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#3A0C52
secondary
#4E8D2C
accent
#F13777
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0C52

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

Preview Lab → · Contrast checker → · Palette generator →

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