#34115F#34115F

#34115F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.127 H 298.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#34115F
RGBrgb(52, 17, 95)
HSLhsl(267, 70%, 22%)
HSVhsv(267, 82%, 37%)
CMYKcmyk(45.3%, 82.1%, 0%, 62.7%)
CIE-LABlab(15.26, 34.43, -39.27)
CIE-LCHlch(15.26, 52.23, 311.24°)
OKLaboklab(28.51% 0.0599 -0.1124)
OKLCHoklch(28.51% 0.127 298.1)
XYZxyz(3.6816, 1.9571, 11.0080)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115F #3C5F11
analogous
#11155F #34115F #5B115F
triadic
#34115F #5F3411 #115F34
tetradic
#34115F #5F1115 #3C5F11 #115F5B
square
#34115F #5F1115 #3C5F11 #115F5B
split-complementary
#34115F #5F5B11 #155F11
monochromatic
#0E051A #18082B #34115F #501A93 #6D24C7

Accessibility & contrast

On white

15.09
#34115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#34115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34115F
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115F#FFFFFF#000000##FFFFFF
##34115F1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#292637
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34115f;
/* rgb */ color: rgb(52, 17, 95);
/* oklch */ color: oklch(28.5% 0.127 298.1);
Tailwind
colors: {
  custom: {
    50: '#71538d',
    500: '#34115f',
    950: '#000000',
  },
}
SCSS
$custom: #34115f;
$custom-light: #71538d;
$custom-dark: #000000;
JSON
{
  "hex": "#34115f",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 266.923,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2851,
    "c": 0.12736,
    "h": 298.1
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#34115F
secondary
#6B9834
accent
#EC3B9D
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115F

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

Preview Lab → · Contrast checker → · Palette generator →

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