#3A1260#3A1260

#3A1260 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.128 H 302.2°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#3A1260
RGBrgb(58, 18, 96)
HSLhsl(271, 68%, 22%)
HSVhsv(271, 81%, 38%)
CMYKcmyk(39.6%, 81.3%, 0%, 62.4%)
CIE-LABlab(16.39, 35.35, -38.06)
CIE-LCHlch(16.39, 51.94, 312.88°)
OKLaboklab(29.52% 0.0685 -0.1086)
OKLCHoklch(29.52% 0.128 302.2)
XYZxyz(4.0720, 2.1767, 11.2697)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1260 #386012
analogous
#131260 #3A1260 #60125F
triadic
#3A1260 #603A12 #12603A
tetradic
#3A1260 #601312 #386012 #125F60
square
#3A1260 #601312 #386012 #125F60
split-complementary
#3A1260 #5F6012 #126013
monochromatic
#10051A #1B082C #3A1260 #591C94 #7825C7

Accessibility & contrast

On white

14.63
#3A1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3A1260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1260
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1260#FFFFFF#000000##FFFFFF
##3A12601.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#322638
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1260;
/* rgb */ color: rgb(58, 18, 96);
/* oklch */ color: oklch(29.5% 0.128 302.2);
Tailwind
colors: {
  custom: {
    50: '#75558e',
    500: '#3a1260',
    950: '#000000',
  },
}
SCSS
$custom: #3a1260;
$custom-light: #75558e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1260",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 270.769,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29519,
    "c": 0.12839,
    "h": 302.2
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#3A1260
secondary
#669836
accent
#EB3D92
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1260

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

Preview Lab → · Contrast checker → · Palette generator →

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