#3A1358#3A1358

#3A1358 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.118 H 306.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#3A1358
RGBrgb(58, 19, 88)
HSLhsl(274, 64%, 21%)
HSVhsv(274, 78%, 35%)
CMYKcmyk(34.1%, 78.4%, 0%, 65.5%)
CIE-LABlab(15.85, 32.76, -33.58)
CIE-LCHlch(15.85, 46.92, 314.29°)
OKLaboklab(28.92% 0.0694 -0.0954)
OKLCHoklch(28.92% 0.118 306)
XYZxyz(3.7389, 2.0699, 9.4332)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1358 #315813
analogous
#171358 #3A1358 #581353
triadic
#3A1358 #583A13 #13583A
tetradic
#3A1358 #581713 #315813 #135358
square
#3A1358 #581713 #315813 #135358
split-complementary
#3A1358 #535813 #135817
monochromatic
#110519 #190826 #3A1358 #5B1E8A #7C29BD

Accessibility & contrast

On white

14.85
#3A1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1358
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1358#FFFFFF#000000##FFFFFF
##3A13581.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#352334
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1358;
/* rgb */ color: rgb(58, 19, 88);
/* oklch */ color: oklch(28.9% 0.118 306.0);
Tailwind
colors: {
  custom: {
    50: '#745588',
    500: '#3a1358',
    950: '#000000',
  },
}
SCSS
$custom: #3a1358;
$custom-light: #745588;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1358",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 273.913,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28919,
    "c": 0.11798,
    "h": 306
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#3A1358
secondary
#5E9037
accent
#E74089
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1358

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

Preview Lab → · Contrast checker → · Palette generator →

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