#3A1168#3A1168

#3A1168 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.139 H 298.9°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#3A1168
RGBrgb(58, 17, 104)
HSLhsl(268, 72%, 24%)
HSVhsv(268, 84%, 41%)
CMYKcmyk(44.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(16.99, 37.93, -42.37)
CIE-LCHlch(16.99, 56.86, 311.84°)
OKLaboklab(30.17% 0.067 -0.1212)
OKLCHoklch(30.17% 0.139 298.9)
XYZxyz(4.4434, 2.2999, 13.3038)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1168 #3F6811
analogous
#111368 #3A1168 #651168
triadic
#3A1168 #683A11 #11683A
tetradic
#3A1168 #681113 #3F6811 #116865
square
#3A1168 #681113 #3F6811 #116865
split-complementary
#3A1168 #686511 #136811
monochromatic
#0F041A #1D0833 #3A1168 #571A9D #7522D1

Accessibility & contrast

On white

14.38
#3A1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1168
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1168#FFFFFF#000000##FFFFFF
##3A11681.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#2F293D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1168;
/* rgb */ color: rgb(58, 17, 104);
/* oklch */ color: oklch(30.2% 0.139 298.9);
Tailwind
colors: {
  custom: {
    50: '#765594',
    500: '#3a1168',
    950: '#000000',
  },
}
SCSS
$custom: #3a1168;
$custom-light: #765594;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1168",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 268.276,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30171,
    "c": 0.1385,
    "h": 298.9
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#3A1168
secondary
#6DA035
accent
#EF3999
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1168

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

Preview Lab → · Contrast checker → · Palette generator →

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