#34165D#34165D

#34165D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.119 H 297.8°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#34165D
RGBrgb(52, 22, 93)
HSLhsl(265, 62%, 23%)
HSVhsv(265, 76%, 36%)
CMYKcmyk(44.1%, 76.3%, 0%, 63.5%)
CIE-LABlab(15.97, 31.31, -36.77)
CIE-LCHlch(15.97, 48.30, 310.41°)
OKLaboklab(28.96% 0.0554 -0.1051)
OKLCHoklch(28.96% 0.119 297.8)
XYZxyz(3.6784, 2.0941, 10.5642)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34165D #3F5D16
analogous
#161C5D #34165D #57165D
triadic
#34165D #5D3416 #165D34
tetradic
#34165D #5D161C #3F5D16 #165D57
square
#34165D #5D161C #3F5D16 #165D57
split-complementary
#34165D #5D5716 #1C5D16
monochromatic
#0E0619 #180A2C #34165D #50228E #6B2DC0

Accessibility & contrast

On white

14.80
#34165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34165D
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34165D#FFFFFF#000000##FFFFFF
##34165D1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#2A2838
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34165d;
/* rgb */ color: rgb(52, 22, 93);
/* oklch */ color: oklch(29.0% 0.119 297.8);
Tailwind
colors: {
  custom: {
    50: '#70568c',
    500: '#34165d',
    950: '#000000',
  },
}
SCSS
$custom: #34165d;
$custom-light: #70568c;
$custom-dark: #000000;
JSON
{
  "hex": "#34165d",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 265.352,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28955,
    "c": 0.11877,
    "h": 297.8
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#34165D
secondary
#6E943B
accent
#E543A0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34165D

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

Preview Lab → · Contrast checker → · Palette generator →

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