#34175C#34175C

#34175C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.116 H 297.9°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#34175C
RGBrgb(52, 23, 92)
HSLhsl(265, 60%, 23%)
HSVhsv(265, 75%, 36%)
CMYKcmyk(43.5%, 75%, 0%, 63.9%)
CIE-LABlab(16.08, 30.46, -35.93)
CIE-LCHlch(16.08, 47.11, 310.29°)
OKLaboklab(29% 0.0544 -0.1026)
OKLCHoklch(29% 0.116 297.9)
XYZxyz(3.6538, 2.1155, 10.3390)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175C #3F5C17
analogous
#171D5C #34175C #56175C
triadic
#34175C #5C3417 #175C34
tetradic
#34175C #5C171D #3F5C17 #175C56
square
#34175C #5C171D #3F5C17 #175C56
split-complementary
#34175C #5C5617 #1D5C17
monochromatic
#0E0618 #180B2B #34175C #50238D #6B2FBE

Accessibility & contrast

On white

14.76
#34175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34175C
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175C#FFFFFF#000000##FFFFFF
##34175C1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#2A2837
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34175c;
/* rgb */ color: rgb(52, 23, 92);
/* oklch */ color: oklch(29.0% 0.116 297.9);
Tailwind
colors: {
  custom: {
    50: '#70578b',
    500: '#34175c',
    950: '#000000',
  },
}
SCSS
$custom: #34175c;
$custom-light: #70578b;
$custom-dark: #000000;
JSON
{
  "hex": "#34175c",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 265.217,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29004,
    "c": 0.11616,
    "h": 297.9
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#34175C
secondary
#6E933C
accent
#E345A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34175C

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

Preview Lab → · Contrast checker → · Palette generator →

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