#34156C#34156C

#34156C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.138 H 292.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#34156C
RGBrgb(52, 21, 108)
HSLhsl(261, 67%, 25%)
HSVhsv(261, 81%, 42%)
CMYKcmyk(51.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(17.22, 36.21, -44.64)
CIE-LCHlch(17.22, 57.47, 309.05°)
OKLaboklab(30.28% 0.0523 -0.1281)
OKLCHoklch(30.28% 0.138 292.2)
XYZxyz(4.3904, 2.3489, 14.4065)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34156C #4D6C15
analogous
#15226C #34156C #5F156C
triadic
#34156C #6C3415 #156C34
tetradic
#34156C #6C1522 #4D6C15 #156C5F
square
#34156C #6C1522 #4D6C15 #156C5F
split-complementary
#34156C #6C5F15 #226C15
monochromatic
#0C051A #1B0B39 #34156C #4D1F9F #6529D2

Accessibility & contrast

On white

14.29
#34156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#34156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34156C
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34156C#FFFFFF#000000##FFFFFF
##34156C1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#222D40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #34156c;
/* rgb */ color: rgb(52, 21, 108);
/* oklch */ color: oklch(30.3% 0.138 292.2);
Tailwind
colors: {
  custom: {
    50: '#725697',
    500: '#34156c',
    950: '#000000',
  },
}
SCSS
$custom: #34156c;
$custom-light: #725697;
$custom-dark: #000000;
JSON
{
  "hex": "#34156c",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 261.379,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30275,
    "c": 0.13843,
    "h": 292.2
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#34156C
secondary
#7DA33A
accent
#EA3DAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34156C

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

Preview Lab → · Contrast checker → · Palette generator →

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