#34177A#34177A

#34177A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.153 H 287.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#34177A
RGBrgb(52, 23, 122)
HSLhsl(258, 68%, 28%)
HSVhsv(258, 81%, 48%)
CMYKcmyk(57.4%, 81.1%, 0%, 52.2%)
CIE-LABlab(19.00, 39.35, -50.75)
CIE-LCHlch(19.00, 64.22, 307.79°)
OKLaboklab(31.96% 0.0463 -0.1461)
OKLCHoklch(31.96% 0.153 287.6)
XYZxyz(5.2344, 2.7477, 18.6631)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34177A #5D7A17
analogous
#172B7A #34177A #65177A
triadic
#34177A #7A3417 #177A34
tetradic
#34177A #7A172B #5D7A17 #177A65
square
#34177A #7A172B #5D7A17 #177A65
split-complementary
#34177A #7A6517 #2B7A17
monochromatic
#0B051A #1E0D47 #34177A #4A21AD #6333D9

Accessibility & contrast

On white

13.55
#34177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34177A
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34177A#FFFFFF#000000##FFFFFF
##34177A1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#153448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34177a;
/* rgb */ color: rgb(52, 23, 122);
/* oklch */ color: oklch(32.0% 0.153 287.6);
Tailwind
colors: {
  custom: {
    50: '#7558a1',
    500: '#34177a',
    950: '#000000',
  },
}
SCSS
$custom: #34177a;
$custom-light: #7558a1;
$custom-dark: #000000;
JSON
{
  "hex": "#34177a",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 257.576,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31956,
    "c": 0.15322,
    "h": 287.6
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#34177A
secondary
#8EAF3E
accent
#EB3DB8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34177A

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

Preview Lab → · Contrast checker → · Palette generator →

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