#34178E#34178E

#34178E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.177 H 282.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#34178E
RGBrgb(52, 23, 142)
HSLhsl(255, 72%, 32%)
HSVhsv(255, 84%, 56%)
CMYKcmyk(63.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(21.19, 45.25, -59.76)
CIE-LCHlch(21.19, 74.96, 307.13°)
OKLaboklab(34.12% 0.0395 -0.1723)
OKLCHoklch(34.12% 0.177 282.9)
XYZxyz(6.6035, 3.2954, 25.8740)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34178E #718E17
analogous
#17358E #34178E #70178E
triadic
#34178E #8E3417 #178E34
tetradic
#34178E #8E1735 #718E17 #178E70
square
#34178E #8E1735 #718E17 #178E70
split-complementary
#34178E #8E7017 #358E17
monochromatic
#0D0625 #210E59 #34178E #4720C3 #673FE0

Accessibility & contrast

On white

12.66
#34178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34178E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34178E#FFFFFF#000000##FFFFFF
##34178E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34178e;
/* rgb */ color: rgb(52, 23, 142);
/* oklch */ color: oklch(34.1% 0.177 282.9);
Tailwind
colors: {
  custom: {
    50: '#785ab0',
    500: '#34178e',
    950: '#000000',
  },
}
SCSS
$custom: #34178e;
$custom-light: #785ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#34178e",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 254.622,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.17681,
    "h": 282.9
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#34178E
secondary
#A1C040
accent
#EF39C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34178E

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

Preview Lab → · Contrast checker → · Palette generator →

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