#3A1870#3A1870

#3A1870 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.140 H 294.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3A1870
RGBrgb(58, 24, 112)
HSLhsl(263, 65%, 27%)
HSVhsv(263, 79%, 44%)
CMYKcmyk(48.2%, 78.6%, 0%, 56.1%)
CIE-LABlab(18.90, 36.87, -44.46)
CIE-LCHlch(18.90, 57.76, 309.67°)
OKLaboklab(31.74% 0.0583 -0.1274)
OKLCHoklch(31.74% 0.14 294.6)
XYZxyz(4.9954, 2.7225, 15.5884)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1870 #4E7018
analogous
#182270 #3A1870 #661870
triadic
#3A1870 #703A18 #18703A
tetradic
#3A1870 #701822 #4E7018 #187066
square
#3A1870 #701822 #4E7018 #187066
split-complementary
#3A1870 #706618 #227018
monochromatic
#0D0519 #200D3E #3A1870 #5423A2 #6F30D3

Accessibility & contrast

On white

13.60
#3A1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1870
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1870#FFFFFF#000000##FFFFFF
##3A18701.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#2A3043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1870;
/* rgb */ color: rgb(58, 24, 112);
/* oklch */ color: oklch(31.7% 0.140 294.6);
Tailwind
colors: {
  custom: {
    50: '#76599a',
    500: '#3a1870',
    950: '#000000',
  },
}
SCSS
$custom: #3a1870;
$custom-light: #76599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1870",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 263.182,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31742,
    "c": 0.14015,
    "h": 294.6
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#3A1870
secondary
#7EA53E
accent
#E840A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1870

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

Preview Lab → · Contrast checker → · Palette generator →

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