#34157C#34157C

#34157C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.157 H 287.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#34157C
RGBrgb(52, 21, 124)
HSLhsl(258, 71%, 28%)
HSVhsv(258, 83%, 49%)
CMYKcmyk(58.1%, 83.1%, 0%, 51.4%)
CIE-LABlab(18.89, 40.88, -52.21)
CIE-LCHlch(18.89, 66.31, 308.06°)
OKLaboklab(31.94% 0.047 -0.1503)
OKLCHoklch(31.94% 0.157 287.4)
XYZxyz(5.3213, 2.7213, 19.3097)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157C #5D7C15
analogous
#152A7C #34157C #67157C
triadic
#34157C #7C3415 #157C34
tetradic
#34157C #7C152A #5D7C15 #157C67
square
#34157C #7C152A #5D7C15 #157C67
split-complementary
#34157C #7C6715 #2A7C15
monochromatic
#0B041A #1E0C48 #34157C #4A1EB0 #6330DC

Accessibility & contrast

On white

13.60
#34157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#34157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157C
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157C#FFFFFF#000000##FFFFFF
##34157C1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#133449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34157c;
/* rgb */ color: rgb(52, 21, 124);
/* oklch */ color: oklch(31.9% 0.157 287.4);
Tailwind
colors: {
  custom: {
    50: '#7557a3',
    500: '#34157c',
    950: '#000000',
  },
}
SCSS
$custom: #34157c;
$custom-light: #7557a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34157c",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 258.058,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.15749,
    "h": 287.4
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#34157C
secondary
#8EB13C
accent
#EE3AB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34157C

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

Preview Lab → · Contrast checker → · Palette generator →

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