#34115E#34115E

#34115E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.126 H 298.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#34115E
RGBrgb(52, 17, 94)
HSLhsl(267, 69%, 22%)
HSVhsv(267, 82%, 37%)
CMYKcmyk(44.7%, 81.9%, 0%, 63.1%)
CIE-LABlab(15.16, 34.15, -38.76)
CIE-LCHlch(15.16, 51.66, 311.38°)
OKLaboklab(28.41% 0.0602 -0.1109)
OKLCHoklch(28.41% 0.126 298.5)
XYZxyz(3.6365, 1.9391, 10.7702)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34115E #3B5E11
analogous
#11155E #34115E #5B115E
triadic
#34115E #5E3411 #115E34
tetradic
#34115E #5E1115 #3B5E11 #115E5B
square
#34115E #5E1115 #3B5E11 #115E5B
split-complementary
#34115E #5E5B11 #155E11
monochromatic
#0E051A #17082A #34115E #511A92 #6D24C6

Accessibility & contrast

On white

15.13
#34115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34115E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34115E#FFFFFF#000000##FFFFFF
##34115E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#2A2637
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34115e;
/* rgb */ color: rgb(52, 17, 94);
/* oklch */ color: oklch(28.4% 0.126 298.5);
Tailwind
colors: {
  custom: {
    50: '#70538c',
    500: '#34115e',
    950: '#000000',
  },
}
SCSS
$custom: #34115e;
$custom-light: #70538c;
$custom-dark: #000000;
JSON
{
  "hex": "#34115e",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 267.273,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28413,
    "c": 0.12618,
    "h": 298.5
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#34115E
secondary
#6A9734
accent
#EC3C9C
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34115E

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

Preview Lab → · Contrast checker → · Palette generator →

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