#3A1172#3A1172

#3A1172 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.150 H 295.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#3A1172
RGBrgb(58, 17, 114)
HSLhsl(265, 74%, 26%)
HSVhsv(265, 85%, 45%)
CMYKcmyk(49.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(17.99, 40.62, -47.25)
CIE-LCHlch(17.99, 62.31, 310.69°)
OKLaboklab(31.17% 0.0635 -0.1355)
OKLCHoklch(31.17% 0.15 295.1)
XYZxyz(4.9818, 2.5152, 16.1393)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1172 #497211
analogous
#111872 #3A1172 #6A1172
triadic
#3A1172 #723A11 #11723A
tetradic
#3A1172 #721118 #497211 #11726A
square
#3A1172 #721118 #497211 #11726A
split-complementary
#3A1172 #726A11 #187211
monochromatic
#0E041B #1F093D #3A1172 #5519A7 #7021DD

Accessibility & contrast

On white

13.97
#3A1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1172
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1172#FFFFFF#000000##FFFFFF
##3A11721.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#292D42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1172;
/* rgb */ color: rgb(58, 17, 114);
/* oklch */ color: oklch(31.2% 0.150 295.1);
Tailwind
colors: {
  custom: {
    50: '#77559b',
    500: '#3a1172',
    950: '#000000',
  },
}
SCSS
$custom: #3a1172;
$custom-light: #77559b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1172",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 265.361,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31169,
    "c": 0.14967,
    "h": 295.1
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#3A1172
secondary
#78A936
accent
#F137A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1172

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

Preview Lab → · Contrast checker → · Palette generator →

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