#34165C#34165C

#34165C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.118 H 298.2°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#34165C
RGBrgb(52, 22, 92)
HSLhsl(266, 61%, 22%)
HSVhsv(266, 76%, 36%)
CMYKcmyk(43.5%, 76.1%, 0%, 63.9%)
CIE-LABlab(15.88, 31.02, -36.25)
CIE-LCHlch(15.88, 47.71, 310.55°)
OKLaboklab(28.86% 0.0556 -0.1035)
OKLCHoklch(28.86% 0.118 298.2)
XYZxyz(3.6344, 2.0765, 10.3325)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34165C #3E5C16
analogous
#161B5C #34165C #57165C
triadic
#34165C #5C3416 #165C34
tetradic
#34165C #5C161B #3E5C16 #165C57
square
#34165C #5C161B #3E5C16 #165C57
split-complementary
#34165C #5C5716 #1B5C16
monochromatic
#0E0619 #180A2B #34165C #50228D #6C2EBF

Accessibility & contrast

On white

14.84
#34165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#34165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34165C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34165C#FFFFFF#000000##FFFFFF
##34165C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34165c;
/* rgb */ color: rgb(52, 22, 92);
/* oklch */ color: oklch(28.9% 0.118 298.2);
Tailwind
colors: {
  custom: {
    50: '#70568b',
    500: '#34165c',
    950: '#000000',
  },
}
SCSS
$custom: #34165c;
$custom-light: #70568b;
$custom-dark: #000000;
JSON
{
  "hex": "#34165c",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 265.714,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28863,
    "c": 0.11752,
    "h": 298.2
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#34165C
secondary
#6D933B
accent
#E5439F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34165C

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

Preview Lab → · Contrast checker → · Palette generator →

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