#34177F#34177F

#34177F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.159 H 286.3°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#34177F
RGBrgb(52, 23, 127)
HSLhsl(257, 69%, 29%)
HSVhsv(257, 82%, 50%)
CMYKcmyk(59.1%, 81.9%, 0%, 50.2%)
CIE-LABlab(19.54, 40.84, -53.06)
CIE-LCHlch(19.54, 66.95, 307.58°)
OKLaboklab(32.49% 0.0447 -0.1528)
OKLCHoklch(32.49% 0.159 286.3)
XYZxyz(5.5522, 2.8748, 20.3369)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34177F #627F17
analogous
#172E7F #34177F #68177F
triadic
#34177F #7F3417 #177F34
tetradic
#34177F #7F172E #627F17 #177F68
square
#34177F #7F172E #627F17 #177F68
split-complementary
#34177F #7F6817 #2E7F17
monochromatic
#0B051A #1F0E4B #34177F #4920B3 #6436DB

Accessibility & contrast

On white

13.33
#34177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#34177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34177F
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34177F#FFFFFF#000000##FFFFFF
##34177F1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0E364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34177f;
/* rgb */ color: rgb(52, 23, 127);
/* oklch */ color: oklch(32.5% 0.159 286.3);
Tailwind
colors: {
  custom: {
    50: '#7659a5',
    500: '#34177f',
    950: '#000000',
  },
}
SCSS
$custom: #34177f;
$custom-light: #7659a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34177f",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 256.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.15919,
    "h": 286.3
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#34177F
secondary
#93B43E
accent
#EC3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34177F

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

Preview Lab → · Contrast checker → · Palette generator →

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