#34197C#34197C

#34197C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.154 H 286.7°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#34197C
RGBrgb(52, 25, 124)
HSLhsl(256, 66%, 29%)
HSVhsv(256, 80%, 49%)
CMYKcmyk(58.1%, 79.8%, 0%, 51.4%)
CIE-LABlab(19.56, 38.96, -51.11)
CIE-LCHlch(19.56, 64.27, 307.32°)
OKLaboklab(32.41% 0.0442 -0.1471)
OKLCHoklch(32.41% 0.154 286.7)
XYZxyz(5.4008, 2.8803, 19.3362)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34197C #617C19
analogous
#192F7C #34197C #66197C
triadic
#34197C #7C3419 #197C34
tetradic
#34197C #7C192F #617C19 #197C66
square
#34197C #7C192F #617C19 #197C66
split-complementary
#34197C #7C6619 #2F7C19
monochromatic
#0B0519 #1F0F49 #34197C #4923AF #6438D7

Accessibility & contrast

On white

13.32
#34197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#34197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34197C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34197C#FFFFFF#000000##FFFFFF
##34197C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#13354A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34197c;
/* rgb */ color: rgb(52, 25, 124);
/* oklch */ color: oklch(32.4% 0.154 286.7);
Tailwind
colors: {
  custom: {
    50: '#7559a3',
    500: '#34197c',
    950: '#000000',
  },
}
SCSS
$custom: #34197c;
$custom-light: #7559a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34197c",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 256.364,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32405,
    "c": 0.15364,
    "h": 286.7
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#34197C
secondary
#92B040
accent
#E93EBB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34197C

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

Preview Lab → · Contrast checker → · Palette generator →

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