#3A0C56#3A0C56

#3A0C56 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.124 H 308.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#3A0C56
RGBrgb(58, 12, 86)
HSLhsl(277, 76%, 19%)
HSVhsv(277, 86%, 34%)
CMYKcmyk(32.6%, 86%, 0%, 66.3%)
CIE-LABlab(14.59, 35.36, -34.27)
CIE-LCHlch(14.59, 49.24, 315.89°)
OKLaboklab(27.98% 0.0769 -0.0974)
OKLCHoklch(27.98% 0.124 308.3)
XYZxyz(3.5558, 1.8344, 8.9691)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C56 #28560C
analogous
#150C56 #3A0C56 #560C4D
triadic
#3A0C56 #563A0C #0C563A
tetradic
#3A0C56 #56150C #28560C #0C4D56
square
#3A0C56 #56150C #28560C #0C4D56
split-complementary
#3A0C56 #4D560C #0C5615
monochromatic
#12041B #160520 #3A0C56 #5E138C #821BC1

Accessibility & contrast

On white

15.36
#3A0C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A0C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C56
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C56#FFFFFF#000000##FFFFFF
##3A0C561.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#351F31
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0c56;
/* rgb */ color: rgb(58, 12, 86);
/* oklch */ color: oklch(28.0% 0.124 308.3);
Tailwind
colors: {
  custom: {
    50: '#745186',
    500: '#3a0c56',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c56;
$custom-light: #745186;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c56",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 277.297,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2798,
    "c": 0.12411,
    "h": 308.3
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#3A0C56
secondary
#53912D
accent
#F2367D
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0C56

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

Preview Lab → · Contrast checker → · Palette generator →

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