#34198C#34198C

#34198C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.173 H 283.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#34198C
RGBrgb(52, 25, 140)
HSLhsl(254, 70%, 32%)
HSVhsv(254, 82%, 55%)
CMYKcmyk(62.9%, 82.1%, 0%, 45.1%)
CIE-LABlab(21.28, 43.75, -58.37)
CIE-LCHlch(21.28, 72.95, 306.86°)
OKLaboklab(34.11% 0.0391 -0.1683)
OKLCHoklch(34.11% 0.173 283.1)
XYZxyz(6.4960, 3.3183, 25.1040)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34198C #718C19
analogous
#19388C #34198C #6E198C
triadic
#34198C #8C3419 #198C34
tetradic
#34198C #8C1938 #718C19 #198C6E
square
#34198C #8C1938 #718C19 #198C6E
split-complementary
#34198C #8C6E19 #388C19
monochromatic
#0D0624 #211058 #34198C #4722C0 #6742DD

Accessibility & contrast

On white

12.62
#34198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34198C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34198C#FFFFFF#000000##FFFFFF
##34198C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34198c;
/* rgb */ color: rgb(52, 25, 140);
/* oklch */ color: oklch(34.1% 0.173 283.1);
Tailwind
colors: {
  custom: {
    50: '#785aaf',
    500: '#34198c',
    950: '#000000',
  },
}
SCSS
$custom: #34198c;
$custom-light: #785aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#34198c",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 254.087,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.17279,
    "h": 283.1
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#34198C
secondary
#A1BE43
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34198C

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

Preview Lab → · Contrast checker → · Palette generator →

#34198C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva