#3A1670#3A1670

#3A1670 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.142 H 295.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#3A1670
RGBrgb(58, 22, 112)
HSLhsl(264, 67%, 26%)
HSVhsv(264, 80%, 44%)
CMYKcmyk(48.2%, 80.4%, 0%, 56.1%)
CIE-LABlab(18.55, 37.85, -45.02)
CIE-LCHlch(18.55, 58.82, 310.06°)
OKLaboklab(31.5% 0.0601 -0.1291)
OKLCHoklch(31.5% 0.142 295)
XYZxyz(4.9557, 2.6431, 15.5752)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1670 #4C7016
analogous
#161F70 #3A1670 #671670
triadic
#3A1670 #703A16 #16703A
tetradic
#3A1670 #70161F #4C7016 #167067
square
#3A1670 #70161F #4C7016 #167067
split-complementary
#3A1670 #706716 #1F7016
monochromatic
#0D051A #200C3D #3A1670 #5420A3 #6F2BD5

Accessibility & contrast

On white

13.74
#3A1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1670
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1670#FFFFFF#000000##FFFFFF
##3A16701.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#2A2F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1670;
/* rgb */ color: rgb(58, 22, 112);
/* oklch */ color: oklch(31.5% 0.142 295.0);
Tailwind
colors: {
  custom: {
    50: '#76589a',
    500: '#3a1670',
    950: '#000000',
  },
}
SCSS
$custom: #3a1670;
$custom-light: #76589a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1670",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 264,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31502,
    "c": 0.14239,
    "h": 295
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#3A1670
secondary
#7CA63C
accent
#EA3EA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1670

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

Preview Lab → · Contrast checker → · Palette generator →

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