#34197A#34197A

#34197A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.151 H 287.2°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#34197A
RGBrgb(52, 25, 122)
HSLhsl(257, 66%, 29%)
HSVhsv(257, 80%, 48%)
CMYKcmyk(57.4%, 79.5%, 0%, 52.2%)
CIE-LABlab(19.35, 38.35, -50.18)
CIE-LCHlch(19.35, 63.16, 307.39°)
OKLaboklab(32.2% 0.0448 -0.1444)
OKLCHoklch(32.2% 0.151 287.2)
XYZxyz(5.2756, 2.8302, 18.6769)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34197A #5F7A19
analogous
#192F7A #34197A #65197A
triadic
#34197A #7A3419 #197A34
tetradic
#34197A #7A192F #5F7A19 #197A65
square
#34197A #7A192F #5F7A19 #197A65
split-complementary
#34197A #7A6519 #2F7A19
monochromatic
#0B0519 #1E0F47 #34197A #4A23AD #6437D6

Accessibility & contrast

On white

13.41
#34197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#34197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34197A
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34197A#FFFFFF#000000##FFFFFF
##34197A1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#153549
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34197a;
/* rgb */ color: rgb(52, 25, 122);
/* oklch */ color: oklch(32.2% 0.151 287.2);
Tailwind
colors: {
  custom: {
    50: '#7459a1',
    500: '#34197a',
    950: '#000000',
  },
}
SCSS
$custom: #34197a;
$custom-light: #7459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#34197a",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 256.701,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32198,
    "c": 0.15119,
    "h": 287.2
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#34197A
secondary
#90AF40
accent
#E93FBA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34197A

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

Preview Lab → · Contrast checker → · Palette generator →

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