#3A1254#3A1254

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

Color values

HEX#3A1254
RGBrgb(58, 18, 84)
HSLhsl(276, 65%, 20%)
HSVhsv(276, 79%, 33%)
CMYKcmyk(31%, 78.6%, 0%, 67.1%)
CIE-LABlab(15.34, 32.22, -31.70)
CIE-LCHlch(15.34, 45.20, 315.46°)
OKLaboklab(28.45% 0.0712 -0.0899)
OKLCHoklch(28.45% 0.115 308.4)
XYZxyz(3.5611, 1.9723, 8.5789)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1254 #2C5412
analogous
#191254 #3A1254 #54124D
triadic
#3A1254 #543A12 #12543A
tetradic
#3A1254 #541912 #2C5412 #124D54
square
#3A1254 #541912 #2C5412 #124D54
split-complementary
#3A1254 #4D5412 #125419
monochromatic
#110519 #170722 #3A1254 #5D1D86 #8028B9

Accessibility & contrast

On white

15.06
#3A1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1254
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1254#FFFFFF#000000##FFFFFF
##3A12541.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#022753
Tritanopia (blue-blind)
#362132
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1254;
/* rgb */ color: rgb(58, 18, 84);
/* oklch */ color: oklch(28.5% 0.115 308.4);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#3a1254',
    950: '#000000',
  },
}
SCSS
$custom: #3a1254;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1254",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 276.364,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.28453,
    "c": 0.11472,
    "h": 308.4
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#3A1254
secondary
#588D35
accent
#E84082
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1254

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

Preview Lab → · Contrast checker → · Palette generator →

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