#34179E#34179E

#34179E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.195 H 280.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#34179E
RGBrgb(52, 23, 158)
HSLhsl(253, 75%, 35%)
HSVhsv(253, 85%, 62%)
CMYKcmyk(67.1%, 85.4%, 0%, 38%)
CIE-LABlab(23.04, 49.88, -66.58)
CIE-LCHlch(23.04, 83.19, 306.84°)
OKLaboklab(35.93% 0.0339 -0.1922)
OKLCHoklch(35.93% 0.195 280)
XYZxyz(7.8922, 3.8108, 32.6608)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34179E #819E17
analogous
#173D9E #34179E #77179E
triadic
#34179E #9E3417 #179E34
tetradic
#34179E #9E173D #819E17 #179E77
square
#34179E #9E173D #819E17 #179E77
split-complementary
#34179E #9E7717 #3D9E17
monochromatic
#110733 #220F69 #34179E #461FD3 #6C4BE5

Accessibility & contrast

On white

11.92
#34179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#34179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34179E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34179E#FFFFFF#000000##FFFFFF
##34179E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34179e;
/* rgb */ color: rgb(52, 23, 158);
/* oklch */ color: oklch(35.9% 0.195 280.0);
Tailwind
colors: {
  custom: {
    50: '#7c5bbc',
    500: '#34179e',
    950: '#000000',
  },
}
SCSS
$custom: #34179e;
$custom-light: #7c5bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#34179e",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 252.889,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35929,
    "c": 0.19514,
    "h": 280
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#34179E
secondary
#ACC64A
accent
#F137C9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #34179E

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

Preview Lab → · Contrast checker → · Palette generator →

#34179E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva