#3A1266#3A1266

#3A1266 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.135 H 299.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#3A1266
RGBrgb(58, 18, 102)
HSLhsl(269, 70%, 24%)
HSVhsv(269, 82%, 40%)
CMYKcmyk(43.1%, 82.4%, 0%, 60%)
CIE-LABlab(16.95, 36.96, -41.12)
CIE-LCHlch(16.95, 55.28, 311.95°)
OKLaboklab(30.08% 0.0667 -0.1176)
OKLCHoklch(30.08% 0.135 299.6)
XYZxyz(4.3589, 2.2914, 12.7804)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1266 #3E6612
analogous
#121466 #3A1266 #641266
triadic
#3A1266 #663A12 #12663A
tetradic
#3A1266 #661214 #3E6612 #126664
square
#3A1266 #661214 #3E6612 #126664
split-complementary
#3A1266 #666412 #146612
monochromatic
#0F051A #1C0932 #3A1266 #581B9A #7524CE

Accessibility & contrast

On white

14.40
#3A1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1266
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1266#FFFFFF#000000##FFFFFF
##3A12661.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.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: #3a1266;
/* rgb */ color: rgb(58, 18, 102);
/* oklch */ color: oklch(30.1% 0.135 299.6);
Tailwind
colors: {
  custom: {
    50: '#755592',
    500: '#3a1266',
    950: '#000000',
  },
}
SCSS
$custom: #3a1266;
$custom-light: #755592;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1266",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 268.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30084,
    "c": 0.1352,
    "h": 299.6
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#3A1266
secondary
#6C9E36
accent
#ED3B98
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1266

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

Preview Lab → · Contrast checker → · Palette generator →

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