#34176F#34176F

#34176F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 290.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#34176F
RGBrgb(52, 23, 111)
HSLhsl(260, 66%, 26%)
HSVhsv(260, 79%, 44%)
CMYKcmyk(53.2%, 79.3%, 0%, 56.5%)
CIE-LABlab(17.88, 36.08, -45.51)
CIE-LCHlch(17.88, 58.08, 308.40°)
OKLaboklab(30.83% 0.0497 -0.1307)
OKLCHoklch(30.83% 0.14 290.8)
XYZxyz(4.5910, 2.4904, 15.2746)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34176F #526F17
analogous
#17266F #34176F #60176F
triadic
#34176F #6F3417 #176F34
tetradic
#34176F #6F1726 #526F17 #176F60
square
#34176F #6F1726 #526F17 #176F60
split-complementary
#34176F #6F6017 #266F17
monochromatic
#0C0519 #1C0C3C #34176F #4C22A2 #642DD3

Accessibility & contrast

On white

14.02
#34176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#34176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34176F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34176F#FFFFFF#000000##FFFFFF
##34176F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#1F2F42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #34176f;
/* rgb */ color: rgb(52, 23, 111);
/* oklch */ color: oklch(30.8% 0.140 290.8);
Tailwind
colors: {
  custom: {
    50: '#735899',
    500: '#34176f',
    950: '#000000',
  },
}
SCSS
$custom: #34176f;
$custom-light: #735899;
$custom-dark: #000000;
JSON
{
  "hex": "#34176f",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 259.773,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30825,
    "c": 0.13988,
    "h": 290.8
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#34176F
secondary
#83A53D
accent
#E93FB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34176F

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

Preview Lab → · Contrast checker → · Palette generator →

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