#34176D#34176D

#34176D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.137 H 291.5°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#34176D
RGBrgb(52, 23, 109)
HSLhsl(260, 65%, 26%)
HSVhsv(260, 79%, 43%)
CMYKcmyk(52.3%, 78.9%, 0%, 57.3%)
CIE-LABlab(17.68, 35.49, -44.54)
CIE-LCHlch(17.68, 56.95, 308.54°)
OKLaboklab(30.62% 0.0503 -0.1279)
OKLCHoklch(30.62% 0.137 291.5)
XYZxyz(4.4821, 2.4468, 14.7012)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34176D #506D17
analogous
#17256D #34176D #5F176D
triadic
#34176D #6D3417 #176D34
tetradic
#34176D #6D1725 #506D17 #176D5F
square
#34176D #6D1725 #506D17 #176D5F
split-complementary
#34176D #6D5F17 #256D17
monochromatic
#0C0519 #1C0C3A #34176D #4C22A0 #642CD2

Accessibility & contrast

On white

14.10
#34176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34176D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34176D#FFFFFF#000000##FFFFFF
##34176D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#212E41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34176d;
/* rgb */ color: rgb(52, 23, 109);
/* oklch */ color: oklch(30.6% 0.137 291.5);
Tailwind
colors: {
  custom: {
    50: '#725798',
    500: '#34176d',
    950: '#000000',
  },
}
SCSS
$custom: #34176d;
$custom-light: #725798;
$custom-dark: #000000;
JSON
{
  "hex": "#34176d",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 260.233,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.13742,
    "h": 291.5
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#34176D
secondary
#81A33D
accent
#E840AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #34176D

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

Preview Lab → · Contrast checker → · Palette generator →

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