#3A1368#3A1368

#3A1368 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.136 H 298.6°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#3A1368
RGBrgb(58, 19, 104)
HSLhsl(268, 69%, 24%)
HSVhsv(268, 82%, 41%)
CMYKcmyk(44.2%, 81.7%, 0%, 59.2%)
CIE-LABlab(17.30, 37.04, -41.86)
CIE-LCHlch(17.30, 55.90, 311.50°)
OKLaboklab(30.39% 0.0652 -0.1198)
OKLCHoklch(30.39% 0.136 298.6)
XYZxyz(4.4758, 2.3647, 13.3146)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1368 #416813
analogous
#131768 #3A1368 #651368
triadic
#3A1368 #683A13 #13683A
tetradic
#3A1368 #681317 #416813 #136865
square
#3A1368 #681317 #416813 #136865
split-complementary
#3A1368 #686513 #176813
monochromatic
#0E051A #1D0A34 #3A1368 #571C9C #7426CF

Accessibility & contrast

On white

14.26
#3A1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A1368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1368
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1368#FFFFFF#000000##FFFFFF
##3A13681.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#2F2A3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1368;
/* rgb */ color: rgb(58, 19, 104);
/* oklch */ color: oklch(30.4% 0.136 298.6);
Tailwind
colors: {
  custom: {
    50: '#765694',
    500: '#3a1368',
    950: '#000000',
  },
}
SCSS
$custom: #3a1368;
$custom-light: #765694;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1368",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 267.529,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30385,
    "c": 0.13639,
    "h": 298.6
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#3A1368
secondary
#709F37
accent
#EC3C9B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1368

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

Preview Lab → · Contrast checker → · Palette generator →

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