#34135B#34135B

#34135B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.120 H 299.4°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#34135B
RGBrgb(52, 19, 91)
HSLhsl(268, 65%, 22%)
HSVhsv(268, 79%, 36%)
CMYKcmyk(42.9%, 79.1%, 0%, 64.3%)
CIE-LABlab(15.23, 32.32, -36.65)
CIE-LCHlch(15.23, 48.87, 311.41°)
OKLaboklab(28.37% 0.059 -0.1047)
OKLCHoklch(28.37% 0.12 299.4)
XYZxyz(3.5369, 1.9511, 10.0858)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34135B #3A5B13
analogous
#13165B #34135B #58135B
triadic
#34135B #5B3413 #135B34
tetradic
#34135B #5B1316 #3A5B13 #135B58
square
#34135B #5B1316 #3A5B13 #135B58
split-complementary
#34135B #5B5813 #165B13
monochromatic
#0E0519 #170828 #34135B #511E8E #6E28C0

Accessibility & contrast

On white

15.11
#34135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34135B
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34135B#FFFFFF#000000##FFFFFF
##34135B1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#2B2536
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34135b;
/* rgb */ color: rgb(52, 19, 91);
/* oklch */ color: oklch(28.4% 0.120 299.4);
Tailwind
colors: {
  custom: {
    50: '#70548a',
    500: '#34135b',
    950: '#000000',
  },
}
SCSS
$custom: #34135b;
$custom-light: #70548a;
$custom-dark: #000000;
JSON
{
  "hex": "#34135b",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 267.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28371,
    "c": 0.1202,
    "h": 299.4
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#34135B
secondary
#699337
accent
#E83F9B
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34135B

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

Preview Lab → · Contrast checker → · Palette generator →

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