#3A1774#3A1774

#3A1774 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.146 H 293.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#3A1774
RGBrgb(58, 23, 116)
HSLhsl(263, 67%, 27%)
HSVhsv(263, 80%, 45%)
CMYKcmyk(50%, 80.2%, 0%, 54.5%)
CIE-LABlab(19.11, 38.51, -46.69)
CIE-LCHlch(19.11, 60.52, 309.51°)
OKLaboklab(32.01% 0.0581 -0.134)
OKLCHoklch(32.01% 0.146 293.4)
XYZxyz(5.2028, 2.7731, 16.7807)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1774 #517417
analogous
#172274 #3A1774 #691774
triadic
#3A1774 #743A17 #17743A
tetradic
#3A1774 #741722 #517417 #177469
square
#3A1774 #741722 #517417 #177469
split-complementary
#3A1774 #746917 #227417
monochromatic
#0D051A #200D41 #3A1774 #5421A7 #6E30D6

Accessibility & contrast

On white

13.51
#3A1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1774
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1774#FFFFFF#000000##FFFFFF
##3A17741.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#283145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1774;
/* rgb */ color: rgb(58, 23, 116);
/* oklch */ color: oklch(32.0% 0.146 293.4);
Tailwind
colors: {
  custom: {
    50: '#77589d',
    500: '#3a1774',
    950: '#000000',
  },
}
SCSS
$custom: #3a1774;
$custom-light: #77589d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1774",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 262.581,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32011,
    "c": 0.14601,
    "h": 293.4
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#3A1774
secondary
#81A93D
accent
#EA3EA9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1774

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

Preview Lab → · Contrast checker → · Palette generator →

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