#3A1173#3A1173

#3A1173 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.151 H 294.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#3A1173
RGBrgb(58, 17, 115)
HSLhsl(265, 74%, 26%)
HSVhsv(265, 85%, 45%)
CMYKcmyk(49.6%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.09, 40.89, -47.72)
CIE-LCHlch(18.09, 62.85, 310.59°)
OKLaboklab(31.27% 0.0631 -0.1369)
OKLCHoklch(31.27% 0.151 294.7)
XYZxyz(5.0390, 2.5381, 16.4407)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1173 #4A7311
analogous
#111973 #3A1173 #6B1173
triadic
#3A1173 #733A11 #11733A
tetradic
#3A1173 #731119 #4A7311 #11736B
square
#3A1173 #731119 #4A7311 #11736B
split-complementary
#3A1173 #736B11 #197311
monochromatic
#0D041B #1F093E #3A1173 #5519A8 #7021DE

Accessibility & contrast

On white

13.93
#3A1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1173
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1173#FFFFFF#000000##FFFFFF
##3A11731.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#292E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1173;
/* rgb */ color: rgb(58, 17, 115);
/* oklch */ color: oklch(31.3% 0.151 294.7);
Tailwind
colors: {
  custom: {
    50: '#77569c',
    500: '#3a1173',
    950: '#000000',
  },
}
SCSS
$custom: #3a1173;
$custom-light: #77569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1173",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 265.102,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.15079,
    "h": 294.7
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#3A1173
secondary
#79AA36
accent
#F137A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1173

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

Preview Lab → · Contrast checker → · Palette generator →

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