#34155B#34155B

#34155B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.118 H 298.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#34155B
RGBrgb(52, 21, 91)
HSLhsl(267, 63%, 22%)
HSVhsv(267, 77%, 36%)
CMYKcmyk(42.9%, 76.9%, 0%, 64.3%)
CIE-LABlab(15.60, 31.27, -36.04)
CIE-LCHlch(15.60, 47.72, 310.95°)
OKLaboklab(28.63% 0.0569 -0.1029)
OKLCHoklch(28.63% 0.118 298.9)
XYZxyz(3.5722, 2.0217, 10.0975)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34155B #3C5B15
analogous
#15195B #34155B #57155B
triadic
#34155B #5B3415 #155B34
tetradic
#34155B #5B1519 #3C5B15 #155B57
square
#34155B #5B1519 #3C5B15 #155B57
split-complementary
#34155B #5B5715 #195B15
monochromatic
#0E0619 #180A29 #34155B #50208D #6D2CBE

Accessibility & contrast

On white

14.95
#34155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#34155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34155B
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34155B#FFFFFF#000000##FFFFFF
##34155B1.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)
#00275D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#2B2636
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34155b;
/* rgb */ color: rgb(52, 21, 91);
/* oklch */ color: oklch(28.6% 0.118 298.9);
Tailwind
colors: {
  custom: {
    50: '#70558a',
    500: '#34155b',
    950: '#000000',
  },
}
SCSS
$custom: #34155b;
$custom-light: #70558a;
$custom-dark: #000000;
JSON
{
  "hex": "#34155b",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 266.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28634,
    "c": 0.11761,
    "h": 298.9
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#34155B
secondary
#6B9239
accent
#E6429D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34155B

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

Preview Lab → · Contrast checker → · Palette generator →

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