#34165A#34165A

#34165A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.7% C 0.115 H 299.1°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#34165A
RGBrgb(52, 22, 90)
HSLhsl(266, 61%, 22%)
HSVhsv(266, 76%, 35%)
CMYKcmyk(42.2%, 75.6%, 0%, 64.7%)
CIE-LABlab(15.71, 30.44, -35.20)
CIE-LCHlch(15.71, 46.54, 310.85°)
OKLaboklab(28.68% 0.056 -0.1005)
OKLCHoklch(28.68% 0.115 299.1)
XYZxyz(3.5481, 2.0420, 9.8781)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34165A #3C5A16
analogous
#161A5A #34165A #56165A
triadic
#34165A #5A3416 #165A34
tetradic
#34165A #5A161A #3C5A16 #165A56
square
#34165A #5A161A #3C5A16 #165A56
split-complementary
#34165A #5A5616 #1A5A16
monochromatic
#0E0619 #180A29 #34165A #50228B #6D2EBC

Accessibility & contrast

On white

14.91
#34165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34165A
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34165A#FFFFFF#000000##FFFFFF
##34165A1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34165a;
/* rgb */ color: rgb(52, 22, 90);
/* oklch */ color: oklch(28.7% 0.115 299.1);
Tailwind
colors: {
  custom: {
    50: '#705689',
    500: '#34165a',
    950: '#000000',
  },
}
SCSS
$custom: #34165a;
$custom-light: #705689;
$custom-dark: #000000;
JSON
{
  "hex": "#34165a",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 266.471,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28681,
    "c": 0.115,
    "h": 299.1
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#34165A
secondary
#6B913B
accent
#E4449D
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #34165A

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

Preview Lab → · Contrast checker → · Palette generator →

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