#34158E#34158E

#34158E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.178 H 283.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#34158E
RGBrgb(52, 21, 142)
HSLhsl(255, 74%, 32%)
HSVhsv(255, 85%, 56%)
CMYKcmyk(63.4%, 85.2%, 0%, 44.3%)
CIE-LABlab(20.90, 46.10, -60.24)
CIE-LCHlch(20.90, 75.85, 307.43°)
OKLaboklab(33.92% 0.0405 -0.1737)
OKLCHoklch(33.92% 0.178 283.1)
XYZxyz(6.5653, 3.2189, 25.8613)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34158E #6F8E15
analogous
#15338E #34158E #71158E
triadic
#34158E #8E3415 #158E34
tetradic
#34158E #8E1533 #6F8E15 #158E71
square
#34158E #8E1533 #6F8E15 #158E71
split-complementary
#34158E #8E7115 #338E15
monochromatic
#0D0523 #200D59 #34158E #481DC3 #663BE2

Accessibility & contrast

On white

12.78
#34158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34158E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34158E#FFFFFF#000000##FFFFFF
##34158E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34158e;
/* rgb */ color: rgb(52, 21, 142);
/* oklch */ color: oklch(33.9% 0.178 283.1);
Tailwind
colors: {
  custom: {
    50: '#7959b0',
    500: '#34158e',
    950: '#000000',
  },
}
SCSS
$custom: #34158e;
$custom-light: #7959b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34158e",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 255.372,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.17838,
    "h": 283.1
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#34158E
secondary
#A0C23D
accent
#F137C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34158E

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

Preview Lab → · Contrast checker → · Palette generator →

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