#3A1264#3A1264

#3A1264 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.133 H 300.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#3A1264
RGBrgb(58, 18, 100)
HSLhsl(269, 69%, 23%)
HSVhsv(269, 82%, 39%)
CMYKcmyk(42%, 82%, 0%, 60.8%)
CIE-LABlab(16.76, 36.42, -40.11)
CIE-LCHlch(16.76, 54.17, 312.24°)
OKLaboklab(29.89% 0.0673 -0.1146)
OKLCHoklch(29.89% 0.133 300.4)
XYZxyz(4.2609, 2.2522, 12.2644)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1264 #3C6412
analogous
#121364 #3A1264 #631264
triadic
#3A1264 #643A12 #12643A
tetradic
#3A1264 #641213 #3C6412 #126463
square
#3A1264 #641213 #3C6412 #126463
split-complementary
#3A1264 #646312 #136412
monochromatic
#0F051A #1C0930 #3A1264 #581B98 #7625CC

Accessibility & contrast

On white

14.48
#3A1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1264
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1264#FFFFFF#000000##FFFFFF
##3A12641.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#30283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1264;
/* rgb */ color: rgb(58, 18, 100);
/* oklch */ color: oklch(29.9% 0.133 300.4);
Tailwind
colors: {
  custom: {
    50: '#755591',
    500: '#3a1264',
    950: '#000000',
  },
}
SCSS
$custom: #3a1264;
$custom-light: #755591;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1264",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 269.268,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29894,
    "c": 0.13293,
    "h": 300.4
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#3A1264
secondary
#6A9C36
accent
#EC3B96
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1264

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

Preview Lab → · Contrast checker → · Palette generator →

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