#34135E#34135E

#34135E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.124 H 298.1°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#34135E
RGBrgb(52, 19, 94)
HSLhsl(266, 66%, 22%)
HSVhsv(266, 80%, 37%)
CMYKcmyk(44.7%, 79.8%, 0%, 63.1%)
CIE-LABlab(15.51, 33.17, -38.20)
CIE-LCHlch(15.51, 50.59, 310.97°)
OKLaboklab(28.65% 0.0583 -0.1093)
OKLCHoklch(28.65% 0.124 298.1)
XYZxyz(3.6689, 2.0039, 10.7810)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34135E #3D5E13
analogous
#13175E #34135E #5A135E
triadic
#34135E #5E3413 #135E34
tetradic
#34135E #5E1317 #3D5E13 #135E5A
square
#34135E #5E1317 #3D5E13 #135E5A
split-complementary
#34135E #5E5A13 #175E13
monochromatic
#0E0519 #18092B #34135E #501D91 #6C28C4

Accessibility & contrast

On white

14.99
#34135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#34135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34135E
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34135E#FFFFFF#000000##FFFFFF
##34135E1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#292737
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34135e;
/* rgb */ color: rgb(52, 19, 94);
/* oklch */ color: oklch(28.7% 0.124 298.1);
Tailwind
colors: {
  custom: {
    50: '#70548c',
    500: '#34135e',
    950: '#000000',
  },
}
SCSS
$custom: #34135e;
$custom-light: #70548c;
$custom-dark: #000000;
JSON
{
  "hex": "#34135e",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 266.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28654,
    "c": 0.12382,
    "h": 298.1
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#34135E
secondary
#6C9637
accent
#E93F9E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34135E

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

Preview Lab → · Contrast checker → · Palette generator →

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