#3A1370#3A1370

#3A1370 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.146 H 295.5°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#3A1370
RGBrgb(58, 19, 112)
HSLhsl(265, 71%, 26%)
HSVhsv(265, 83%, 44%)
CMYKcmyk(48.2%, 83%, 0%, 56.1%)
CIE-LABlab(18.08, 39.23, -45.80)
CIE-LCHlch(18.08, 60.31, 310.58°)
OKLaboklab(31.17% 0.0627 -0.1313)
OKLCHoklch(31.17% 0.146 295.5)
XYZxyz(4.9016, 2.5350, 15.5571)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1370 #497013
analogous
#131B70 #3A1370 #681370
triadic
#3A1370 #703A13 #13703A
tetradic
#3A1370 #70131B #497013 #137068
square
#3A1370 #70131B #497013 #137068
split-complementary
#3A1370 #706813 #1B7013
monochromatic
#0E041A #1F0A3C #3A1370 #551CA4 #7025D9

Accessibility & contrast

On white

13.93
#3A1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1370
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1370#FFFFFF#000000##FFFFFF
##3A13701.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#2B2D42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1370;
/* rgb */ color: rgb(58, 19, 112);
/* oklch */ color: oklch(31.2% 0.146 295.5);
Tailwind
colors: {
  custom: {
    50: '#77569a',
    500: '#3a1370',
    950: '#000000',
  },
}
SCSS
$custom: #3a1370;
$custom-light: #77569a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1370",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 265.161,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31169,
    "c": 0.14551,
    "h": 295.5
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#3A1370
secondary
#78A738
accent
#EE3AA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1370

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

Preview Lab → · Contrast checker → · Palette generator →

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