#34115C#34115C

#34115C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.124 H 299.4°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#34115C
RGBrgb(52, 17, 92)
HSLhsl(268, 69%, 21%)
HSVhsv(268, 82%, 36%)
CMYKcmyk(43.5%, 81.5%, 0%, 63.9%)
CIE-LABlab(14.97, 33.60, -37.74)
CIE-LCHlch(14.97, 50.53, 311.68°)
OKLaboklab(28.22% 0.0608 -0.1079)
OKLCHoklch(28.22% 0.124 299.4)
XYZxyz(3.5479, 1.9036, 10.3037)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115C #395C11
analogous
#11145C #34115C #5A115C
triadic
#34115C #5C3411 #115C34
tetradic
#34115C #5C1114 #395C11 #115C5A
square
#34115C #5C1114 #395C11 #115C5A
split-complementary
#34115C #5C5A11 #145C11
monochromatic
#0F051A #170728 #34115C #511B90 #6E24C3

Accessibility & contrast

On white

15.21
#34115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#34115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34115C
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115C#FFFFFF#000000##FFFFFF
##34115C1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#2A2536
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34115c;
/* rgb */ color: rgb(52, 17, 92);
/* oklch */ color: oklch(28.2% 0.124 299.4);
Tailwind
colors: {
  custom: {
    50: '#70538b',
    500: '#34115c',
    950: '#000000',
  },
}
SCSS
$custom: #34115c;
$custom-light: #70538b;
$custom-dark: #000000;
JSON
{
  "hex": "#34115c",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 268,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2822,
    "c": 0.12383,
    "h": 299.4
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#34115C
secondary
#689534
accent
#EC3C9A
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115C

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

Preview Lab → · Contrast checker → · Palette generator →

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