#34197F#34197F

#34197F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.157 H 286.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#34197F
RGBrgb(52, 25, 127)
HSLhsl(256, 67%, 30%)
HSVhsv(256, 80%, 50%)
CMYKcmyk(59.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(19.87, 39.86, -52.50)
CIE-LCHlch(19.87, 65.92, 307.21°)
OKLaboklab(32.72% 0.0433 -0.1512)
OKLCHoklch(32.72% 0.157 286)
XYZxyz(5.5934, 2.9573, 20.3506)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34197F #647F19
analogous
#19317F #34197F #67197F
triadic
#34197F #7F3419 #197F34
tetradic
#34197F #7F1931 #647F19 #197F67
square
#34197F #7F1931 #647F19 #197F67
split-complementary
#34197F #7F6719 #317F19
monochromatic
#0A051A #1F0F4C #34197F #4923B2 #643AD8

Accessibility & contrast

On white

13.19
#34197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#34197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34197F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34197F#FFFFFF#000000##FFFFFF
##34197F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#0E374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34197f;
/* rgb */ color: rgb(52, 25, 127);
/* oklch */ color: oklch(32.7% 0.157 286.0);
Tailwind
colors: {
  custom: {
    50: '#755aa5',
    500: '#34197f',
    950: '#000000',
  },
}
SCSS
$custom: #34197f;
$custom-light: #755aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#34197f",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 255.882,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32719,
    "c": 0.15727,
    "h": 286
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#34197F
secondary
#95B341
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34197F

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

Preview Lab → · Contrast checker → · Palette generator →

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