#34135C#34135C

#34135C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.121 H 299.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#34135C
RGBrgb(52, 19, 92)
HSLhsl(267, 66%, 22%)
HSVhsv(267, 79%, 36%)
CMYKcmyk(43.5%, 79.3%, 0%, 63.9%)
CIE-LABlab(15.32, 32.60, -37.17)
CIE-LCHlch(15.32, 49.44, 311.26°)
OKLaboklab(28.47% 0.0588 -0.1062)
OKLCHoklch(28.47% 0.121 299)
XYZxyz(3.5803, 1.9685, 10.3145)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34135C #3B5C13
analogous
#13175C #34135C #59135C
triadic
#34135C #5C3413 #135C34
tetradic
#34135C #5C1317 #3B5C13 #135C59
square
#34135C #5C1317 #3B5C13 #135C59
split-complementary
#34135C #5C5913 #175C13
monochromatic
#0E0519 #170929 #34135C #511D8F #6D28C1

Accessibility & contrast

On white

15.07
#34135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#34135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34135C
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34135C#FFFFFF#000000##FFFFFF
##34135C1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#2A2636
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34135c;
/* rgb */ color: rgb(52, 19, 92);
/* oklch */ color: oklch(28.5% 0.121 299.0);
Tailwind
colors: {
  custom: {
    50: '#70548b',
    500: '#34135c',
    950: '#000000',
  },
}
SCSS
$custom: #34135c;
$custom-light: #70548b;
$custom-dark: #000000;
JSON
{
  "hex": "#34135c",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 267.123,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28465,
    "c": 0.1214,
    "h": 299
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#34135C
secondary
#6A9437
accent
#E93F9C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34135C

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

Preview Lab → · Contrast checker → · Palette generator →

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