#3A1253#3A1253

#3A1253 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.114 H 309.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1253
RGBrgb(58, 18, 83)
HSLhsl(277, 64%, 20%)
HSVhsv(277, 78%, 33%)
CMYKcmyk(30.1%, 78.3%, 0%, 67.5%)
CIE-LABlab(15.26, 31.96, -31.16)
CIE-LCHlch(15.26, 44.64, 315.73°)
OKLaboklab(28.37% 0.0714 -0.0883)
OKLCHoklch(28.37% 0.114 309)
XYZxyz(3.5222, 1.9567, 8.3741)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1253 #2B5312
analogous
#1A1253 #3A1253 #53124C
triadic
#3A1253 #533A12 #12533A
tetradic
#3A1253 #531A12 #2B5312 #124C53
square
#3A1253 #531A12 #2B5312 #124C53
split-complementary
#3A1253 #4C5312 #12531A
monochromatic
#120519 #170721 #3A1253 #5D1D85 #8028B8

Accessibility & contrast

On white

15.09
#3A1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1253
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1253#FFFFFF#000000##FFFFFF
##3A12531.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#032752
Tritanopia (blue-blind)
#362131
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1253;
/* rgb */ color: rgb(58, 18, 83);
/* oklch */ color: oklch(28.4% 0.114 309.0);
Tailwind
colors: {
  custom: {
    50: '#735484',
    500: '#3a1253',
    950: '#000000',
  },
}
SCSS
$custom: #3a1253;
$custom-light: #735484;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1253",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 276.923,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28368,
    "c": 0.11358,
    "h": 309
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#3A1253
secondary
#568C35
accent
#E74081
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1253

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

Preview Lab → · Contrast checker → · Palette generator →

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