#34178F#34178F

#34178F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.178 H 282.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#34178F
RGBrgb(52, 23, 143)
HSLhsl(255, 72%, 33%)
HSVhsv(255, 84%, 56%)
CMYKcmyk(63.6%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.30, 45.54, -60.19)
CIE-LCHlch(21.30, 75.48, 307.11°)
OKLaboklab(34.23% 0.0392 -0.1736)
OKLCHoklch(34.23% 0.178 282.7)
XYZxyz(6.6790, 3.3255, 26.2712)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34178F #728F17
analogous
#17368F #34178F #70178F
triadic
#34178F #8F3417 #178F34
tetradic
#34178F #8F1736 #728F17 #178F70
square
#34178F #8F1736 #728F17 #178F70
split-complementary
#34178F #8F7017 #368F17
monochromatic
#0E0626 #210F5A #34178F #471FC4 #6740E0

Accessibility & contrast

On white

12.61
#34178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#34178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34178F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34178F#FFFFFF#000000##FFFFFF
##34178F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34178f;
/* rgb */ color: rgb(52, 23, 143);
/* oklch */ color: oklch(34.2% 0.178 282.7);
Tailwind
colors: {
  custom: {
    50: '#795ab1',
    500: '#34178f',
    950: '#000000',
  },
}
SCSS
$custom: #34178f;
$custom-light: #795ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#34178f",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 254.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34232,
    "c": 0.17797,
    "h": 282.7
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34178F

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

Preview Lab → · Contrast checker → · Palette generator →

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