#34115A#34115A

#34115A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.121 H 300.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#34115A
RGBrgb(52, 17, 90)
HSLhsl(269, 68%, 21%)
HSVhsv(269, 81%, 35%)
CMYKcmyk(42.2%, 81.1%, 0%, 64.7%)
CIE-LABlab(14.78, 33.04, -36.70)
CIE-LCHlch(14.78, 49.39, 312.00°)
OKLaboklab(28.03% 0.0614 -0.1048)
OKLCHoklch(28.03% 0.121 300.3)
XYZxyz(3.4616, 1.8691, 9.8493)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115A #375A11
analogous
#11125A #34115A #58115A
triadic
#34115A #5A3411 #115A34
tetradic
#34115A #5A1112 #375A11 #115A58
square
#34115A #5A1112 #375A11 #115A58
split-complementary
#34115A #5A5811 #125A11
monochromatic
#0F051A #160727 #34115A #521B8D #6F24C1

Accessibility & contrast

On white

15.29
#34115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#34115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34115A
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115A#FFFFFF#000000##FFFFFF
##34115A1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#2B2435
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #34115a;
/* rgb */ color: rgb(52, 17, 90);
/* oklch */ color: oklch(28.0% 0.121 300.3);
Tailwind
colors: {
  custom: {
    50: '#705389',
    500: '#34115a',
    950: '#000000',
  },
}
SCSS
$custom: #34115a;
$custom-light: #705389;
$custom-dark: #000000;
JSON
{
  "hex": "#34115a",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 268.767,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28029,
    "c": 0.12147,
    "h": 300.3
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#34115A
secondary
#659334
accent
#EB3D97
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115A

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

Preview Lab → · Contrast checker → · Palette generator →

#34115A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva