#3A1155#3A1155

#3A1155 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.117 H 308.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1155
RGBrgb(58, 17, 85)
HSLhsl(276, 67%, 20%)
HSVhsv(276, 80%, 33%)
CMYKcmyk(31.8%, 80%, 0%, 66.7%)
CIE-LABlab(15.26, 32.95, -32.52)
CIE-LCHlch(15.26, 46.29, 315.38°)
OKLaboklab(28.42% 0.0722 -0.0923)
OKLCHoklch(28.42% 0.117 308)
XYZxyz(3.5847, 1.9564, 8.7813)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1155 #2C5511
analogous
#181155 #3A1155 #55114E
triadic
#3A1155 #553A11 #11553A
tetradic
#3A1155 #551811 #2C5511 #114E55
square
#3A1155 #551811 #2C5511 #114E55
split-complementary
#3A1155 #4E5511 #115518
monochromatic
#11051A #170722 #3A1155 #5D1B88 #8025BB

Accessibility & contrast

On white

15.09
#3A1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1155
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1155#FFFFFF#000000##FFFFFF
##3A11551.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#362132
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1155;
/* rgb */ color: rgb(58, 17, 85);
/* oklch */ color: oklch(28.4% 0.117 308.0);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#3a1155',
    950: '#000000',
  },
}
SCSS
$custom: #3a1155;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1155",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 276.176,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.28419,
    "c": 0.11717,
    "h": 308
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#3A1155
secondary
#588E34
accent
#EA3E82
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1155

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

Preview Lab → · Contrast checker → · Palette generator →

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