#34198A#34198A

#34198A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.170 H 283.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#34198A
RGBrgb(52, 25, 138)
HSLhsl(254, 69%, 32%)
HSVhsv(254, 82%, 54%)
CMYKcmyk(62.3%, 81.9%, 0%, 45.9%)
CIE-LABlab(21.06, 43.16, -57.48)
CIE-LCHlch(21.06, 71.88, 306.90°)
OKLaboklab(33.9% 0.0397 -0.1657)
OKLCHoklch(33.9% 0.17 283.5)
XYZxyz(6.3498, 3.2599, 24.3344)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34198A #6F8A19
analogous
#19378A #34198A #6D198A
triadic
#34198A #8A3419 #198A34
tetradic
#34198A #8A1937 #6F8A19 #198A6D
square
#34198A #8A1937 #6F8A19 #198A6D
split-complementary
#34198A #8A6D19 #378A19
monochromatic
#0D0622 #201056 #34198A #4822BE #6641DD

Accessibility & contrast

On white

12.71
#34198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34198A
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34198A#FFFFFF#000000##FFFFFF
##34198A1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34198a;
/* rgb */ color: rgb(52, 25, 138);
/* oklch */ color: oklch(33.9% 0.170 283.5);
Tailwind
colors: {
  custom: {
    50: '#785aad',
    500: '#34198a',
    950: '#000000',
  },
}
SCSS
$custom: #34198a;
$custom-light: #785aad;
$custom-dark: #000000;
JSON
{
  "hex": "#34198a",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 254.336,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.17044,
    "h": 283.5
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#34198A
secondary
#A0BD42
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34198A

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

Preview Lab → · Contrast checker → · Palette generator →

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