#34158F#34158F

#34158F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.180 H 282.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#34158F
RGBrgb(52, 21, 143)
HSLhsl(255, 74%, 32%)
HSVhsv(255, 85%, 56%)
CMYKcmyk(63.6%, 85.3%, 0%, 43.9%)
CIE-LABlab(21.02, 46.39, -60.67)
CIE-LCHlch(21.02, 76.37, 307.40°)
OKLaboklab(34.03% 0.0402 -0.175)
OKLCHoklch(34.03% 0.18 282.9)
XYZxyz(6.6407, 3.2491, 26.2585)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34158F #708F15
analogous
#15338F #34158F #71158F
triadic
#34158F #8F3415 #158F34
tetradic
#34158F #8F1533 #708F15 #158F71
square
#34158F #8F1533 #708F15 #158F71
split-complementary
#34158F #8F7115 #338F15
monochromatic
#0D0524 #210D5A #34158F #471DC4 #663CE2

Accessibility & contrast

On white

12.73
#34158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34158F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34158F#FFFFFF#000000##FFFFFF
##34158F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34158f;
/* rgb */ color: rgb(52, 21, 143);
/* oklch */ color: oklch(34.0% 0.180 282.9);
Tailwind
colors: {
  custom: {
    50: '#7959b1',
    500: '#34158f',
    950: '#000000',
  },
}
SCSS
$custom: #34158f;
$custom-light: #7959b1;
$custom-dark: #000000;
JSON
{
  "hex": "#34158f",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 255.246,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34034,
    "c": 0.17952,
    "h": 282.9
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#34158F
secondary
#A0C23E
accent
#F137C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34158F

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

Preview Lab → · Contrast checker → · Palette generator →

#34158F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva