#34135F#34135F

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

Color values

HEX#34135F
RGBrgb(52, 19, 95)
HSLhsl(266, 67%, 22%)
HSVhsv(266, 80%, 37%)
CMYKcmyk(45.3%, 80%, 0%, 62.7%)
CIE-LABlab(15.60, 33.45, -38.71)
CIE-LCHlch(15.60, 51.17, 310.83°)
OKLaboklab(28.75% 0.058 -0.1108)
OKLCHoklch(28.75% 0.125 297.6)
XYZxyz(3.7141, 2.0220, 11.0189)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34135F #3E5F13
analogous
#13185F #34135F #5A135F
triadic
#34135F #5F3413 #135F34
tetradic
#34135F #5F1318 #3E5F13 #135F5A
square
#34135F #5F1318 #3E5F13 #135F5A
split-complementary
#34135F #5F5A13 #185F13
monochromatic
#0E051A #18092C #34135F #501D92 #6C27C5

Accessibility & contrast

On white

14.95
#34135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34135F
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34135F#FFFFFF#000000##FFFFFF
##34135F1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#292738
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34135f;
/* rgb */ color: rgb(52, 19, 95);
/* oklch */ color: oklch(28.7% 0.125 297.6);
Tailwind
colors: {
  custom: {
    50: '#70548d',
    500: '#34135f',
    950: '#000000',
  },
}
SCSS
$custom: #34135f;
$custom-light: #70548d;
$custom-dark: #000000;
JSON
{
  "hex": "#34135f",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 266.053,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2875,
    "c": 0.12502,
    "h": 297.6
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#34135F
secondary
#6D9737
accent
#EA3E9F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34135F

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

Preview Lab → · Contrast checker → · Palette generator →

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