#3A1154#3A1154

#3A1154 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.116 H 308.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#3A1154
RGBrgb(58, 17, 84)
HSLhsl(277, 66%, 20%)
HSVhsv(277, 80%, 33%)
CMYKcmyk(31%, 79.8%, 0%, 67.1%)
CIE-LABlab(15.17, 32.70, -31.98)
CIE-LCHlch(15.17, 45.73, 315.64°)
OKLaboklab(28.33% 0.0724 -0.0907)
OKLCHoklch(28.33% 0.116 308.6)
XYZxyz(3.5453, 1.9406, 8.5736)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1154 #2B5411
analogous
#181154 #3A1154 #54114D
triadic
#3A1154 #543A11 #11543A
tetradic
#3A1154 #541811 #2B5411 #114D54
square
#3A1154 #541811 #2B5411 #114D54
split-complementary
#3A1154 #4D5411 #115418
monochromatic
#120519 #170721 #3A1154 #5D1B87 #8026BA

Accessibility & contrast

On white

15.13
#3A1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1154
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1154#FFFFFF#000000##FFFFFF
##3A11541.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1154;
/* rgb */ color: rgb(58, 17, 84);
/* oklch */ color: oklch(28.3% 0.116 308.6);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#3a1154',
    950: '#000000',
  },
}
SCSS
$custom: #3a1154;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1154",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 276.716,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28333,
    "c": 0.11604,
    "h": 308.6
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#3A1154
secondary
#568D34
accent
#E93F81
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1154

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

Preview Lab → · Contrast checker → · Palette generator →

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