#34156D#34156D

#34156D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.140 H 291.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#34156D
RGBrgb(52, 21, 109)
HSLhsl(261, 68%, 25%)
HSVhsv(261, 81%, 43%)
CMYKcmyk(52.3%, 80.7%, 0%, 57.3%)
CIE-LABlab(17.32, 36.50, -45.12)
CIE-LCHlch(17.32, 58.03, 308.97°)
OKLaboklab(30.38% 0.052 -0.1296)
OKLCHoklch(30.38% 0.14 291.9)
XYZxyz(4.4439, 2.3704, 14.6884)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34156D #4E6D15
analogous
#15226D #34156D #60156D
triadic
#34156D #6D3415 #156D34
tetradic
#34156D #6D1522 #4E6D15 #156D60
square
#34156D #6D1522 #4E6D15 #156D60
split-complementary
#34156D #6D6015 #226D15
monochromatic
#0C051A #1C0B3A #34156D #4C1FA0 #6529D4

Accessibility & contrast

On white

14.25
#34156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34156D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34156D#FFFFFF#000000##FFFFFF
##34156D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#212E40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34156d;
/* rgb */ color: rgb(52, 21, 109);
/* oklch */ color: oklch(30.4% 0.140 291.9);
Tailwind
colors: {
  custom: {
    50: '#725698',
    500: '#34156d',
    950: '#000000',
  },
}
SCSS
$custom: #34156d;
$custom-light: #725698;
$custom-dark: #000000;
JSON
{
  "hex": "#34156d",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 261.136,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.13963,
    "h": 291.9
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#34156D
secondary
#7EA33A
accent
#EB3DAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34156D

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

Preview Lab → · Contrast checker → · Palette generator →

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