#3A1366#3A1366

#3A1366 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.134 H 299.4°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#3A1366
RGBrgb(58, 19, 102)
HSLhsl(268, 69%, 24%)
HSVhsv(268, 81%, 40%)
CMYKcmyk(43.1%, 81.4%, 0%, 60%)
CIE-LABlab(17.11, 36.50, -40.86)
CIE-LCHlch(17.11, 54.79, 311.78°)
OKLaboklab(30.19% 0.0658 -0.1168)
OKLCHoklch(30.19% 0.134 299.4)
XYZxyz(4.3755, 2.3245, 12.7860)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1366 #3F6613
analogous
#131566 #3A1366 #631366
triadic
#3A1366 #663A13 #13663A
tetradic
#3A1366 #661315 #3F6613 #136663
square
#3A1366 #661315 #3F6613 #136663
split-complementary
#3A1366 #666313 #156613
monochromatic
#0F051A #1D0932 #3A1366 #571D9A #7526CD

Accessibility & contrast

On white

14.33
#3A1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1366
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1366#FFFFFF#000000##FFFFFF
##3A13661.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#2F293C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1366;
/* rgb */ color: rgb(58, 19, 102);
/* oklch */ color: oklch(30.2% 0.134 299.4);
Tailwind
colors: {
  custom: {
    50: '#755692',
    500: '#3a1366',
    950: '#000000',
  },
}
SCSS
$custom: #3a1366;
$custom-light: #755692;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1366",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 268.193,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30194,
    "c": 0.1341,
    "h": 299.4
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#3A1366
secondary
#6D9D37
accent
#EB3C99
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1366

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

Preview Lab → · Contrast checker → · Palette generator →

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