#3A1374#3A1374

#3A1374 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.150 H 294.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3A1374
RGBrgb(58, 19, 116)
HSLhsl(264, 72%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(50%, 83.6%, 0%, 54.5%)
CIE-LABlab(18.48, 40.33, -47.73)
CIE-LCHlch(18.48, 62.49, 310.20°)
OKLaboklab(31.57% 0.0613 -0.137)
OKLCHoklch(31.57% 0.15 294.1)
XYZxyz(5.1293, 2.6261, 16.7562)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1374 #4D7413
analogous
#131C74 #3A1374 #6B1374
triadic
#3A1374 #743A13 #13743A
tetradic
#3A1374 #74131C #4D7413 #13746B
square
#3A1374 #74131C #4D7413 #13746B
split-complementary
#3A1374 #746B13 #1C7413
monochromatic
#0D041A #200A3F #3A1374 #541CA9 #6F26DB

Accessibility & contrast

On white

13.77
#3A1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1374
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1374#FFFFFF#000000##FFFFFF
##3A13741.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#282F44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1374;
/* rgb */ color: rgb(58, 19, 116);
/* oklch */ color: oklch(31.6% 0.150 294.1);
Tailwind
colors: {
  custom: {
    50: '#77579d',
    500: '#3a1374',
    950: '#000000',
  },
}
SCSS
$custom: #3a1374;
$custom-light: #77579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1374",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 264.124,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31572,
    "c": 0.15005,
    "h": 294.1
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#3A1374
secondary
#7DAA38
accent
#EF39A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1374

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

Preview Lab → · Contrast checker → · Palette generator →

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