#3A1760#3A1760

#3A1760 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.122 H 301.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#3A1760
RGBrgb(58, 23, 96)
HSLhsl(269, 61%, 23%)
HSVhsv(269, 76%, 38%)
CMYKcmyk(39.6%, 76%, 0%, 62.4%)
CIE-LABlab(17.26, 32.88, -36.64)
CIE-LCHlch(17.26, 49.23, 311.90°)
OKLaboklab(30.13% 0.0633 -0.1045)
OKLCHoklch(30.13% 0.122 301.2)
XYZxyz(4.1621, 2.3568, 11.2997)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1760 #3D6017
analogous
#171860 #3A1760 #5E1760
triadic
#3A1760 #603A17 #17603A
tetradic
#3A1760 #601718 #3D6017 #17605E
square
#3A1760 #601718 #3D6017 #17605E
split-complementary
#3A1760 #605E17 #186017
monochromatic
#0F0619 #1C0B2F #3A1760 #582391 #762FC3

Accessibility & contrast

On white

14.27
#3A1760 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A1760 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1760
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1760#FFFFFF#000000##FFFFFF
##3A17601.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#32293A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1760;
/* rgb */ color: rgb(58, 23, 96);
/* oklch */ color: oklch(30.1% 0.122 301.2);
Tailwind
colors: {
  custom: {
    50: '#74578e',
    500: '#3a1760',
    950: '#000000',
  },
}
SCSS
$custom: #3a1760;
$custom-light: #74578e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1760",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 96
  },
  "hsl": {
    "h": 268.767,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30133,
    "c": 0.12213,
    "h": 301.2
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#3A1760
secondary
#6B973C
accent
#E44397
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1760

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

Preview Lab → · Contrast checker → · Palette generator →

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