#34178D#34178D

#34178D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.176 H 283.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#34178D
RGBrgb(52, 23, 141)
HSLhsl(255, 72%, 32%)
HSVhsv(255, 84%, 55%)
CMYKcmyk(63.1%, 83.7%, 0%, 44.7%)
CIE-LABlab(21.08, 44.96, -59.32)
CIE-LCHlch(21.08, 74.43, 307.16°)
OKLaboklab(34.01% 0.0398 -0.1711)
OKLCHoklch(34.01% 0.176 283.1)
XYZxyz(6.5288, 3.2655, 25.4804)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34178D #708D17
analogous
#17358D #34178D #6F178D
triadic
#34178D #8D3417 #178D34
tetradic
#34178D #8D1735 #708D17 #178D6F
square
#34178D #8D1735 #708D17 #178D6F
split-complementary
#34178D #8D6F17 #358D17
monochromatic
#0D0624 #210E58 #34178D #4720C2 #663FE0

Accessibility & contrast

On white

12.70
#34178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34178D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34178D#FFFFFF#000000##FFFFFF
##34178D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34178d;
/* rgb */ color: rgb(52, 23, 141);
/* oklch */ color: oklch(34.0% 0.176 283.1);
Tailwind
colors: {
  custom: {
    50: '#785ab0',
    500: '#34178d',
    950: '#000000',
  },
}
SCSS
$custom: #34178d;
$custom-light: #785ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#34178d",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 254.746,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3401,
    "c": 0.17565,
    "h": 283.1
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#34178D
secondary
#A0C040
accent
#EF39C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34178D

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

Preview Lab → · Contrast checker → · Palette generator →

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