#34158D#34158D

#34158D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.177 H 283.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#34158D
RGBrgb(52, 21, 141)
HSLhsl(256, 74%, 32%)
HSVhsv(256, 85%, 55%)
CMYKcmyk(63.1%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.79, 45.81, -59.80)
CIE-LCHlch(20.79, 75.33, 307.45°)
OKLaboklab(33.81% 0.0409 -0.1724)
OKLCHoklch(33.81% 0.177 283.3)
XYZxyz(6.4906, 3.1890, 25.4677)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34158D #6E8D15
analogous
#15328D #34158D #70158D
triadic
#34158D #8D3415 #158D34
tetradic
#34158D #8D1532 #6E8D15 #158D70
square
#34158D #8D1532 #6E8D15 #158D70
split-complementary
#34158D #8D7015 #328D15
monochromatic
#0D0522 #200D58 #34158D #481DC2 #663BE2

Accessibility & contrast

On white

12.82
#34158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#34158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34158D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34158D#FFFFFF#000000##FFFFFF
##34158D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34158d;
/* rgb */ color: rgb(52, 21, 141);
/* oklch */ color: oklch(33.8% 0.177 283.3);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#34158d',
    950: '#000000',
  },
}
SCSS
$custom: #34158d;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34158d",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 255.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.17723,
    "h": 283.3
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#34158D
secondary
#9FC13D
accent
#F137C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34158D

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

Preview Lab → · Contrast checker → · Palette generator →

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