#34175D#34175D

#34175D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.117 H 297.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#34175D
RGBrgb(52, 23, 93)
HSLhsl(265, 60%, 23%)
HSVhsv(265, 75%, 36%)
CMYKcmyk(44.1%, 75.3%, 0%, 63.5%)
CIE-LABlab(16.17, 30.76, -36.45)
CIE-LCHlch(16.17, 47.69, 310.15°)
OKLaboklab(29.1% 0.0542 -0.1041)
OKLCHoklch(29.1% 0.117 297.5)
XYZxyz(3.6978, 2.1331, 10.5707)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175D #405D17
analogous
#171D5D #34175D #57175D
triadic
#34175D #5D3417 #175D34
tetradic
#34175D #5D171D #405D17 #175D57
square
#34175D #5D171D #405D17 #175D57
split-complementary
#34175D #5D5717 #1D5D17
monochromatic
#0E0619 #190B2C #34175D #4F238E #6B2FBF

Accessibility & contrast

On white

14.72
#34175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#34175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34175D
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175D#FFFFFF#000000##FFFFFF
##34175D1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.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: #34175d;
/* rgb */ color: rgb(52, 23, 93);
/* oklch */ color: oklch(29.1% 0.117 297.5);
Tailwind
colors: {
  custom: {
    50: '#70578c',
    500: '#34175d',
    950: '#000000',
  },
}
SCSS
$custom: #34175d;
$custom-light: #70578c;
$custom-dark: #000000;
JSON
{
  "hex": "#34175d",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 264.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29095,
    "c": 0.11742,
    "h": 297.5
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#34175D
secondary
#6F943C
accent
#E344A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34175D

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

Preview Lab → · Contrast checker → · Palette generator →

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