#3A1567#3A1567

#3A1567 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.133 H 298.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#3A1567
RGBrgb(58, 21, 103)
HSLhsl(267, 66%, 24%)
HSVhsv(267, 80%, 40%)
CMYKcmyk(43.7%, 79.6%, 0%, 59.6%)
CIE-LABlab(17.53, 35.83, -40.82)
CIE-LCHlch(17.53, 54.31, 311.27°)
OKLaboklab(30.52% 0.0637 -0.1167)
OKLCHoklch(30.52% 0.133 298.6)
XYZxyz(4.4606, 2.4151, 13.0605)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1567 #426715
analogous
#151967 #3A1567 #631567
triadic
#3A1567 #673A15 #15673A
tetradic
#3A1567 #671519 #426715 #156763
square
#3A1567 #671519 #426715 #156763
split-complementary
#3A1567 #676315 #196715
monochromatic
#0E0519 #1D0B34 #3A1567 #571F9A #732ACD

Accessibility & contrast

On white

14.16
#3A1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A1567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1567
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1567#FFFFFF#000000##FFFFFF
##3A15671.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#2F2B3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1567;
/* rgb */ color: rgb(58, 21, 103);
/* oklch */ color: oklch(30.5% 0.133 298.6);
Tailwind
colors: {
  custom: {
    50: '#755793',
    500: '#3a1567',
    950: '#000000',
  },
}
SCSS
$custom: #3a1567;
$custom-light: #755793;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1567",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 267.073,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30521,
    "c": 0.13296,
    "h": 298.6
  },
  "luminance": 0.02415
}

Semantic roles & 50–950 ramp

primary
#3A1567
secondary
#719E3A
accent
#E93F9C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1567

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

Preview Lab → · Contrast checker → · Palette generator →

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