#3A1265#3A1265

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

Color values

HEX#3A1265
RGBrgb(58, 18, 101)
HSLhsl(269, 70%, 23%)
HSVhsv(269, 82%, 40%)
CMYKcmyk(42.6%, 82.2%, 0%, 60.4%)
CIE-LABlab(16.85, 36.69, -40.61)
CIE-LCHlch(16.85, 54.73, 312.09°)
OKLaboklab(29.99% 0.0671 -0.1161)
OKLCHoklch(29.99% 0.134 300)
XYZxyz(4.3096, 2.2717, 12.5208)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1265 #3D6512
analogous
#121365 #3A1265 #631265
triadic
#3A1265 #653A12 #12653A
tetradic
#3A1265 #651213 #3D6512 #126563
square
#3A1265 #651213 #3D6512 #126563
split-complementary
#3A1265 #656312 #136512
monochromatic
#0F051A #1C0931 #3A1265 #581B99 #7625CD

Accessibility & contrast

On white

14.44
#3A1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1265
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1265#FFFFFF#000000##FFFFFF
##3A12651.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#30283B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1265;
/* rgb */ color: rgb(58, 18, 101);
/* oklch */ color: oklch(30.0% 0.134 300.0);
Tailwind
colors: {
  custom: {
    50: '#755592',
    500: '#3a1265',
    950: '#000000',
  },
}
SCSS
$custom: #3a1265;
$custom-light: #755592;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1265",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 268.916,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29988,
    "c": 0.13407,
    "h": 300
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#3A1265
secondary
#6B9D36
accent
#ED3B97
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1265

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

Preview Lab → · Contrast checker → · Palette generator →

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