#34157A#34157A

#34157A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 287.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#34157A
RGBrgb(52, 21, 122)
HSLhsl(258, 71%, 28%)
HSVhsv(258, 83%, 48%)
CMYKcmyk(57.4%, 82.8%, 0%, 52.2%)
CIE-LABlab(18.68, 40.30, -51.29)
CIE-LCHlch(18.68, 65.22, 308.16°)
OKLaboklab(31.73% 0.0477 -0.1476)
OKLCHoklch(31.73% 0.155 287.9)
XYZxyz(5.1962, 2.6713, 18.6504)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157A #5B7A15
analogous
#15287A #34157A #66157A
triadic
#34157A #7A3415 #157A34
tetradic
#34157A #7A1528 #5B7A15 #157A66
square
#34157A #7A1528 #5B7A15 #157A66
split-complementary
#34157A #7A6615 #287A15
monochromatic
#0B041A #1E0C46 #34157A #4A1EAE #632EDB

Accessibility & contrast

On white

13.69
#34157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#34157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157A
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157A#FFFFFF#000000##FFFFFF
##34157A1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#153348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #34157a;
/* rgb */ color: rgb(52, 21, 122);
/* oklch */ color: oklch(31.7% 0.155 287.9);
Tailwind
colors: {
  custom: {
    50: '#7557a1',
    500: '#34157a',
    950: '#000000',
  },
}
SCSS
$custom: #34157a;
$custom-light: #7557a1;
$custom-dark: #000000;
JSON
{
  "hex": "#34157a",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 258.416,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31728,
    "c": 0.15513,
    "h": 287.9
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#34157A
secondary
#8CAF3B
accent
#ED3AB6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34157A

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

Preview Lab → · Contrast checker → · Palette generator →

#34157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva