#3A1153#3A1153

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

Color values

HEX#3A1153
RGBrgb(58, 17, 83)
HSLhsl(277, 66%, 20%)
HSVhsv(277, 80%, 33%)
CMYKcmyk(30.1%, 79.5%, 0%, 67.5%)
CIE-LABlab(15.09, 32.44, -31.43)
CIE-LCHlch(15.09, 45.17, 315.91°)
OKLaboklab(28.25% 0.0726 -0.0891)
OKLCHoklch(28.25% 0.115 309.2)
XYZxyz(3.5064, 1.9250, 8.3688)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1153 #2A5311
analogous
#191153 #3A1153 #53114B
triadic
#3A1153 #533A11 #11533A
tetradic
#3A1153 #531911 #2A5311 #114B53
square
#3A1153 #531911 #2A5311 #114B53
split-complementary
#3A1153 #4B5311 #115319
monochromatic
#120519 #170720 #3A1153 #5D1B86 #8126B9

Accessibility & contrast

On white

15.16
#3A1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1153
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1153#FFFFFF#000000##FFFFFF
##3A11531.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1153;
/* rgb */ color: rgb(58, 17, 83);
/* oklch */ color: oklch(28.2% 0.115 309.2);
Tailwind
colors: {
  custom: {
    50: '#735484',
    500: '#3a1153',
    950: '#000000',
  },
}
SCSS
$custom: #3a1153;
$custom-light: #735484;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1153",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 277.273,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28248,
    "c": 0.11492,
    "h": 309.2
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#3A1153
secondary
#558C34
accent
#E93F7F
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1153

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

Preview Lab → · Contrast checker → · Palette generator →

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