#34115B#34115B

#34115B is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.123 H 299.9°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#34115B
RGBrgb(52, 17, 91)
HSLhsl(268, 69%, 21%)
HSVhsv(268, 81%, 36%)
CMYKcmyk(42.9%, 81.3%, 0%, 64.3%)
CIE-LABlab(14.88, 33.32, -37.22)
CIE-LCHlch(14.88, 49.96, 311.83°)
OKLaboklab(28.12% 0.0611 -0.1064)
OKLCHoklch(28.12% 0.123 299.9)
XYZxyz(3.5045, 1.8863, 10.0750)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115B #385B11
analogous
#11135B #34115B #59115B
triadic
#34115B #5B3411 #115B34
tetradic
#34115B #5B1113 #385B11 #115B59
square
#34115B #5B1113 #385B11 #115B59
split-complementary
#34115B #5B5911 #135B11
monochromatic
#0F051A #170727 #34115B #511B8F #6F24C2

Accessibility & contrast

On white

15.25
#34115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34115B
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115B#FFFFFF#000000##FFFFFF
##34115B1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34115b;
/* rgb */ color: rgb(52, 17, 91);
/* oklch */ color: oklch(28.1% 0.123 299.9);
Tailwind
colors: {
  custom: {
    50: '#70538a',
    500: '#34115b',
    950: '#000000',
  },
}
SCSS
$custom: #34115b;
$custom-light: #70538a;
$custom-dark: #000000;
JSON
{
  "hex": "#34115b",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 268.378,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28124,
    "c": 0.12265,
    "h": 299.9
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#34115B
secondary
#669434
accent
#EB3C99
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115B

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

Preview Lab → · Contrast checker → · Palette generator →

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