#34175B#34175B

#34175B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.115 H 298.4°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#34175B
RGBrgb(52, 23, 91)
HSLhsl(266, 60%, 22%)
HSVhsv(266, 75%, 36%)
CMYKcmyk(42.9%, 74.7%, 0%, 64.3%)
CIE-LABlab(15.99, 30.17, -35.40)
CIE-LCHlch(15.99, 46.52, 310.44°)
OKLaboklab(28.91% 0.0546 -0.1011)
OKLCHoklch(28.91% 0.115 298.4)
XYZxyz(3.6104, 2.0981, 10.1103)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175B #3E5B17
analogous
#171C5B #34175B #56175B
triadic
#34175B #5B3417 #175B34
tetradic
#34175B #5B171C #3E5B17 #175B56
square
#34175B #5B171C #3E5B17 #175B56
split-complementary
#34175B #5B5617 #1C5B17
monochromatic
#0E0618 #180B2A #34175B #50238C #6C30BD

Accessibility & contrast

On white

14.79
#34175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34175B
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175B#FFFFFF#000000##FFFFFF
##34175B1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#2B2737
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34175b;
/* rgb */ color: rgb(52, 23, 91);
/* oklch */ color: oklch(28.9% 0.115 298.4);
Tailwind
colors: {
  custom: {
    50: '#70578a',
    500: '#34175b',
    950: '#000000',
  },
}
SCSS
$custom: #34175b;
$custom-light: #70578a;
$custom-dark: #000000;
JSON
{
  "hex": "#34175b",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 265.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28914,
    "c": 0.11488,
    "h": 298.4
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#34175B
secondary
#6D923C
accent
#E345A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34175B

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

Preview Lab → · Contrast checker → · Palette generator →

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