#3A1255#3A1255

#3A1255 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.116 H 307.8°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#3A1255
RGBrgb(58, 18, 85)
HSLhsl(276, 65%, 20%)
HSVhsv(276, 79%, 33%)
CMYKcmyk(31.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(15.42, 32.47, -32.25)
CIE-LCHlch(15.42, 45.76, 315.20°)
OKLaboklab(28.54% 0.0711 -0.0915)
OKLCHoklch(28.54% 0.116 307.8)
XYZxyz(3.6006, 1.9881, 8.7866)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1255 #2D5512
analogous
#181255 #3A1255 #55124E
triadic
#3A1255 #553A12 #12553A
tetradic
#3A1255 #551812 #2D5512 #124E55
square
#3A1255 #551812 #2D5512 #124E55
split-complementary
#3A1255 #4E5512 #125518
monochromatic
#110519 #180722 #3A1255 #5C1D88 #7F27BA

Accessibility & contrast

On white

15.03
#3A1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1255
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1255#FFFFFF#000000##FFFFFF
##3A12551.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#362232
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1255;
/* rgb */ color: rgb(58, 18, 85);
/* oklch */ color: oklch(28.5% 0.116 307.8);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#3a1255',
    950: '#000000',
  },
}
SCSS
$custom: #3a1255;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1255",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 275.821,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28538,
    "c": 0.11586,
    "h": 307.8
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#3A1255
secondary
#598E35
accent
#E84084
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1255

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

Preview Lab → · Contrast checker → · Palette generator →

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