#34175A#34175A

#34175A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.114 H 298.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#34175A
RGBrgb(52, 23, 90)
HSLhsl(266, 59%, 22%)
HSVhsv(266, 74%, 35%)
CMYKcmyk(42.2%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.91, 29.88, -34.88)
CIE-LCHlch(15.91, 45.93, 310.59°)
OKLaboklab(28.82% 0.0548 -0.0995)
OKLCHoklch(28.82% 0.114 298.9)
XYZxyz(3.5676, 2.0810, 9.8846)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175A #3D5A17
analogous
#171C5A #34175A #56175A
triadic
#34175A #5A3417 #175A34
tetradic
#34175A #5A171C #3D5A17 #175A56
square
#34175A #5A171C #3D5A17 #175A56
split-complementary
#34175A #5A5617 #1C5A17
monochromatic
#0E0618 #180B29 #34175A #50238B #6C30BB

Accessibility & contrast

On white

14.83
#34175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#34175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34175A
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175A#FFFFFF#000000##FFFFFF
##34175A1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34175a;
/* rgb */ color: rgb(52, 23, 90);
/* oklch */ color: oklch(28.8% 0.114 298.9);
Tailwind
colors: {
  custom: {
    50: '#6f5689',
    500: '#34175a',
    950: '#000000',
  },
}
SCSS
$custom: #34175a;
$custom-light: #6f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#34175a",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 265.97,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28824,
    "c": 0.11361,
    "h": 298.9
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#34175A
secondary
#6C913C
accent
#E2459E
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #34175A

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

Preview Lab → · Contrast checker → · Palette generator →

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