#34165B#34165B

#34165B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.116 H 298.7°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#34165B
RGBrgb(52, 22, 91)
HSLhsl(266, 61%, 22%)
HSVhsv(266, 76%, 36%)
CMYKcmyk(42.9%, 75.8%, 0%, 64.3%)
CIE-LABlab(15.79, 30.73, -35.73)
CIE-LCHlch(15.79, 47.12, 310.70°)
OKLaboklab(28.77% 0.0558 -0.102)
OKLCHoklch(28.77% 0.116 298.7)
XYZxyz(3.5909, 2.0592, 10.1038)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34165B #3D5B16
analogous
#161B5B #34165B #57165B
triadic
#34165B #5B3416 #165B34
tetradic
#34165B #5B161B #3D5B16 #165B57
square
#34165B #5B161B #3D5B16 #165B57
split-complementary
#34165B #5B5716 #1B5B16
monochromatic
#0E0619 #180A2A #34165B #50228C #6C2EBE

Accessibility & contrast

On white

14.87
#34165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#34165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34165B
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34165B#FFFFFF#000000##FFFFFF
##34165B1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#2B2736
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34165b;
/* rgb */ color: rgb(52, 22, 91);
/* oklch */ color: oklch(28.8% 0.116 298.7);
Tailwind
colors: {
  custom: {
    50: '#70568a',
    500: '#34165b',
    950: '#000000',
  },
}
SCSS
$custom: #34165b;
$custom-light: #70568a;
$custom-dark: #000000;
JSON
{
  "hex": "#34165b",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 266.087,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28772,
    "c": 0.11626,
    "h": 298.7
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#34165B
secondary
#6C923B
accent
#E4449E
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34165B

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

Preview Lab → · Contrast checker → · Palette generator →

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