#3A1157#3A1157

#3A1157 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.119 H 306.9°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#3A1157
RGBrgb(58, 17, 87)
HSLhsl(275, 67%, 20%)
HSVhsv(275, 80%, 34%)
CMYKcmyk(33.3%, 80.5%, 0%, 65.9%)
CIE-LABlab(15.43, 33.46, -33.59)
CIE-LCHlch(15.43, 47.42, 314.89°)
OKLaboklab(28.59% 0.0717 -0.0955)
OKLCHoklch(28.59% 0.119 306.9)
XYZxyz(3.6653, 1.9886, 9.2057)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1157 #2E5711
analogous
#171157 #3A1157 #571151
triadic
#3A1157 #573A11 #11573A
tetradic
#3A1157 #571711 #2E5711 #115157
square
#3A1157 #571711 #2E5711 #115157
split-complementary
#3A1157 #515711 #115717
monochromatic
#11051A #180724 #3A1157 #5C1B8A #7E25BD

Accessibility & contrast

On white

15.02
#3A1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1157
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1157#FFFFFF#000000##FFFFFF
##3A11571.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#352233
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1157;
/* rgb */ color: rgb(58, 17, 87);
/* oklch */ color: oklch(28.6% 0.119 306.9);
Tailwind
colors: {
  custom: {
    50: '#745487',
    500: '#3a1157',
    950: '#000000',
  },
}
SCSS
$custom: #3a1157;
$custom-light: #745487;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1157",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 275.143,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.11942,
    "h": 306.9
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#3A1157
secondary
#5A9034
accent
#EA3E85
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1157

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

Preview Lab → · Contrast checker → · Palette generator →

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