#34155C#34155C

#34155C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.7% C 0.119 H 298.5°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#34155C
RGBrgb(52, 21, 92)
HSLhsl(266, 63%, 22%)
HSVhsv(266, 77%, 36%)
CMYKcmyk(43.5%, 77.2%, 0%, 63.9%)
CIE-LABlab(15.69, 31.56, -36.57)
CIE-LCHlch(15.69, 48.30, 310.80°)
OKLaboklab(28.73% 0.0567 -0.1045)
OKLCHoklch(28.73% 0.119 298.5)
XYZxyz(3.6156, 2.0390, 10.3262)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34155C #3D5C15
analogous
#151A5C #34155C #58155C
triadic
#34155C #5C3415 #155C34
tetradic
#34155C #5C151A #3D5C15 #155C58
square
#34155C #5C151A #3D5C15 #155C58
split-complementary
#34155C #5C5815 #1A5C15
monochromatic
#0E0619 #180A2A #34155C #50208E #6C2CC0

Accessibility & contrast

On white

14.92
#34155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#34155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34155C
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34155C#FFFFFF#000000##FFFFFF
##34155C1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#2A2737
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34155c;
/* rgb */ color: rgb(52, 21, 92);
/* oklch */ color: oklch(28.7% 0.119 298.5);
Tailwind
colors: {
  custom: {
    50: '#70558b',
    500: '#34155c',
    950: '#000000',
  },
}
SCSS
$custom: #34155c;
$custom-light: #70558b;
$custom-dark: #000000;
JSON
{
  "hex": "#34155c",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 266.197,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.11885,
    "h": 298.5
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#34155C
secondary
#6C9339
accent
#E6429E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34155C

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

Preview Lab → · Contrast checker → · Palette generator →

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