#3A1054#3A1054

#3A1054 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.117 H 308.8°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#3A1054
RGBrgb(58, 16, 84)
HSLhsl(277, 68%, 20%)
HSVhsv(277, 81%, 33%)
CMYKcmyk(31%, 81%, 0%, 67.1%)
CIE-LABlab(15.01, 33.16, -32.24)
CIE-LCHlch(15.01, 46.25, 315.81°)
OKLaboklab(28.22% 0.0735 -0.0915)
OKLCHoklch(28.22% 0.117 308.8)
XYZxyz(3.5301, 1.9103, 8.5685)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1054 #2A5410
analogous
#181054 #3A1054 #54104C
triadic
#3A1054 #543A10 #10543A
tetradic
#3A1054 #541810 #2A5410 #104C54
square
#3A1054 #541810 #2A5410 #104C54
split-complementary
#3A1054 #4C5410 #105418
monochromatic
#12051A #170621 #3A1054 #5D1A87 #8124BB

Accessibility & contrast

On white

15.20
#3A1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1054
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1054#FFFFFF#000000##FFFFFF
##3A10541.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#362031
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1054;
/* rgb */ color: rgb(58, 16, 84);
/* oklch */ color: oklch(28.2% 0.117 308.8);
Tailwind
colors: {
  custom: {
    50: '#735385',
    500: '#3a1054',
    950: '#000000',
  },
}
SCSS
$custom: #3a1054;
$custom-light: #735385;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1054",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 277.059,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28218,
    "c": 0.11732,
    "h": 308.8
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#3A1054
secondary
#558E32
accent
#EB3D7F
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1054

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

Preview Lab → · Contrast checker → · Palette generator →

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