#34157F#34157F

#34157F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.161 H 286.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#34157F
RGBrgb(52, 21, 127)
HSLhsl(258, 72%, 29%)
HSVhsv(258, 83%, 50%)
CMYKcmyk(59.1%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.22, 41.76, -53.58)
CIE-LCHlch(19.22, 67.93, 307.93°)
OKLaboklab(32.27% 0.046 -0.1543)
OKLCHoklch(32.27% 0.161 286.6)
XYZxyz(5.5140, 2.7984, 20.3242)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157F #607F15
analogous
#152B7F #34157F #69157F
triadic
#34157F #7F3415 #157F34
tetradic
#34157F #7F152B #607F15 #157F69
square
#34157F #7F152B #607F15 #157F69
split-complementary
#34157F #7F6915 #2B7F15
monochromatic
#0B041A #1E0C4A #34157F #4A1EB4 #6431DD

Accessibility & contrast

On white

13.46
#34157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#34157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157F
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157F#FFFFFF#000000##FFFFFF
##34157F1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0F354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34157f;
/* rgb */ color: rgb(52, 21, 127);
/* oklch */ color: oklch(32.3% 0.161 286.6);
Tailwind
colors: {
  custom: {
    50: '#7658a5',
    500: '#34157f',
    950: '#000000',
  },
}
SCSS
$custom: #34157f;
$custom-light: #7658a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34157f",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 257.547,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32265,
    "c": 0.16101,
    "h": 286.6
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#34157F
secondary
#91B43C
accent
#EE39B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34157F

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

Preview Lab → · Contrast checker → · Palette generator →

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