#34105C#34105C

#34105C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.125 H 299.6°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#34105C
RGBrgb(52, 16, 92)
HSLhsl(268, 70%, 21%)
HSVhsv(268, 83%, 36%)
CMYKcmyk(43.5%, 82.6%, 0%, 63.9%)
CIE-LABlab(14.81, 34.07, -38.01)
CIE-LCHlch(14.81, 51.04, 311.87°)
OKLaboklab(28.1% 0.0617 -0.1087)
OKLCHoklch(28.1% 0.125 299.6)
XYZxyz(3.5327, 1.8733, 10.2986)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34105C #385C10
analogous
#10125C #34105C #5A105C
triadic
#34105C #5C3410 #105C34
tetradic
#34105C #5C1012 #385C10 #105C5A
square
#34105C #5C1012 #385C10 #105C5A
split-complementary
#34105C #5C5A10 #125C10
monochromatic
#0F051A #170728 #34105C #511990 #6F22C4

Accessibility & contrast

On white

15.28
#34105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#34105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34105C
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34105C#FFFFFF#000000##FFFFFF
##34105C1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#2A2436
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #34105c;
/* rgb */ color: rgb(52, 16, 92);
/* oklch */ color: oklch(28.1% 0.125 299.6);
Tailwind
colors: {
  custom: {
    50: '#70538b',
    500: '#34105c',
    950: '#000000',
  },
}
SCSS
$custom: #34105c;
$custom-light: #70538b;
$custom-dark: #000000;
JSON
{
  "hex": "#34105c",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 268.421,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28104,
    "c": 0.12498,
    "h": 299.6
  },
  "luminance": 0.01873
}

Semantic roles & 50–950 ramp

primary
#34105C
secondary
#669533
accent
#ED3B99
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #34105C

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

Preview Lab → · Contrast checker → · Palette generator →

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