#34115D#34115D

#34115D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.125 H 298.9°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#34115D
RGBrgb(52, 17, 93)
HSLhsl(268, 69%, 22%)
HSVhsv(268, 82%, 36%)
CMYKcmyk(44.1%, 81.7%, 0%, 63.5%)
CIE-LABlab(15.07, 33.88, -38.25)
CIE-LCHlch(15.07, 51.10, 311.53°)
OKLaboklab(28.32% 0.0605 -0.1094)
OKLCHoklch(28.32% 0.125 298.9)
XYZxyz(3.5919, 1.9212, 10.5354)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115D #3A5D11
analogous
#11145D #34115D #5A115D
triadic
#34115D #5D3411 #115D34
tetradic
#34115D #5D1114 #3A5D11 #115D5A
square
#34115D #5D1114 #3A5D11 #115D5A
split-complementary
#34115D #5D5A11 #145D11
monochromatic
#0E051A #170829 #34115D #511A91 #6E24C4

Accessibility & contrast

On white

15.17
#34115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34115D
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115D#FFFFFF#000000##FFFFFF
##34115D1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34115d;
/* rgb */ color: rgb(52, 17, 93);
/* oklch */ color: oklch(28.3% 0.125 298.9);
Tailwind
colors: {
  custom: {
    50: '#70538c',
    500: '#34115d',
    950: '#000000',
  },
}
SCSS
$custom: #34115d;
$custom-light: #70538c;
$custom-dark: #000000;
JSON
{
  "hex": "#34115d",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 267.632,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28316,
    "c": 0.12501,
    "h": 298.9
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#34115D
secondary
#699634
accent
#EC3C9B
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115D

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

Preview Lab → · Contrast checker → · Palette generator →

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