#34157D#34157D

#34157D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.159 H 287.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#34157D
RGBrgb(52, 21, 125)
HSLhsl(258, 71%, 29%)
HSVhsv(258, 83%, 49%)
CMYKcmyk(58.4%, 83.2%, 0%, 51%)
CIE-LABlab(19.00, 41.17, -52.67)
CIE-LCHlch(19.00, 66.85, 308.02°)
OKLaboklab(32.05% 0.0467 -0.1516)
OKLCHoklch(32.05% 0.159 287.1)
XYZxyz(5.3849, 2.7468, 19.6445)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157D #5E7D15
analogous
#152A7D #34157D #68157D
triadic
#34157D #7D3415 #157D34
tetradic
#34157D #7D152A #5E7D15 #157D68
square
#34157D #7D152A #5E7D15 #157D68
split-complementary
#34157D #7D6815 #2A7D15
monochromatic
#0B041A #1E0C49 #34157D #4A1EB1 #6330DC

Accessibility & contrast

On white

13.55
#34157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157D#FFFFFF#000000##FFFFFF
##34157D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#12344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34157d;
/* rgb */ color: rgb(52, 21, 125);
/* oklch */ color: oklch(32.0% 0.159 287.1);
Tailwind
colors: {
  custom: {
    50: '#7557a4',
    500: '#34157d',
    950: '#000000',
  },
}
SCSS
$custom: #34157d;
$custom-light: #7557a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34157d",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 257.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32049,
    "c": 0.15866,
    "h": 287.1
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34157D

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

Preview Lab → · Contrast checker → · Palette generator →

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