#3A1174#3A1174

#3A1174 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.152 H 294.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#3A1174
RGBrgb(58, 17, 116)
HSLhsl(265, 74%, 26%)
HSVhsv(265, 85%, 45%)
CMYKcmyk(50%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.19, 41.17, -48.20)
CIE-LCHlch(18.19, 63.39, 310.50°)
OKLaboklab(31.37% 0.0628 -0.1383)
OKLCHoklch(31.37% 0.152 294.4)
XYZxyz(5.0969, 2.5612, 16.7454)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1174 #4B7411
analogous
#111A74 #3A1174 #6B1174
triadic
#3A1174 #743A11 #11743A
tetradic
#3A1174 #74111A #4B7411 #11746B
square
#3A1174 #74111A #4B7411 #11746B
split-complementary
#3A1174 #746B11 #1A7411
monochromatic
#0D041B #1F093F #3A1174 #5519A9 #6F21DE

Accessibility & contrast

On white

13.89
#3A1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1174
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1174#FFFFFF#000000##FFFFFF
##3A11741.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#282E44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1174;
/* rgb */ color: rgb(58, 17, 116);
/* oklch */ color: oklch(31.4% 0.152 294.4);
Tailwind
colors: {
  custom: {
    50: '#77569d',
    500: '#3a1174',
    950: '#000000',
  },
}
SCSS
$custom: #3a1174;
$custom-light: #77569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1174",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 264.848,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31374,
    "c": 0.1519,
    "h": 294.4
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#3A1174
secondary
#7AAB36
accent
#F137A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1174

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

Preview Lab → · Contrast checker → · Palette generator →

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