#3A1274#3A1274

#3A1274 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.151 H 294.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#3A1274
RGBrgb(58, 18, 116)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(50%, 84.5%, 0%, 54.5%)
CIE-LABlab(18.33, 40.75, -47.97)
CIE-LCHlch(18.33, 62.94, 310.35°)
OKLaboklab(31.47% 0.062 -0.1377)
OKLCHoklch(31.47% 0.151 294.3)
XYZxyz(5.1127, 2.5930, 16.7507)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1274 #4C7412
analogous
#121B74 #3A1274 #6B1274
triadic
#3A1274 #743A12 #12743A
tetradic
#3A1274 #74121B #4C7412 #12746B
square
#3A1274 #74121B #4C7412 #12746B
split-complementary
#3A1274 #746B12 #1B7412
monochromatic
#0D041A #200A3F #3A1274 #541AA9 #6F23DD

Accessibility & contrast

On white

13.83
#3A1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1274
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1274#FFFFFF#000000##FFFFFF
##3A12741.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#282F44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1274;
/* rgb */ color: rgb(58, 18, 116);
/* oklch */ color: oklch(31.5% 0.151 294.3);
Tailwind
colors: {
  custom: {
    50: '#77569d',
    500: '#3a1274',
    950: '#000000',
  },
}
SCSS
$custom: #3a1274;
$custom-light: #77569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1274",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 264.49,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31471,
    "c": 0.15099,
    "h": 294.3
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#3A1274
secondary
#7CAB37
accent
#F038A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1274

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

Preview Lab → · Contrast checker → · Palette generator →

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