#3A1362#3A1362

#3A1362 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.130 H 301.1°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#3A1362
RGBrgb(58, 19, 98)
HSLhsl(270, 68%, 23%)
HSVhsv(270, 81%, 38%)
CMYKcmyk(40.8%, 80.6%, 0%, 61.6%)
CIE-LABlab(16.73, 35.42, -38.82)
CIE-LCHlch(16.73, 52.55, 312.37°)
OKLaboklab(29.82% 0.067 -0.1108)
OKLCHoklch(29.82% 0.13 301.1)
XYZxyz(4.1819, 2.2471, 11.7663)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1362 #3B6213
analogous
#131462 #3A1362 #611362
triadic
#3A1362 #623A13 #13623A
tetradic
#3A1362 #621314 #3B6213 #136261
square
#3A1362 #621314 #3B6213 #136261
split-complementary
#3A1362 #626113 #146213
monochromatic
#0F051A #1C092F #3A1362 #581D95 #7727C9

Accessibility & contrast

On white

14.49
#3A1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1362
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1362#FFFFFF#000000##FFFFFF
##3A13621.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#31283A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1362;
/* rgb */ color: rgb(58, 19, 98);
/* oklch */ color: oklch(29.8% 0.130 301.1);
Tailwind
colors: {
  custom: {
    50: '#75558f',
    500: '#3a1362',
    950: '#000000',
  },
}
SCSS
$custom: #3a1362;
$custom-light: #75558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1362",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 269.62,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29819,
    "c": 0.1295,
    "h": 301.1
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#3A1362
secondary
#699A37
accent
#EA3D95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1362

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

Preview Lab → · Contrast checker → · Palette generator →

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