#34197D#34197D

#34197D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.155 H 286.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#34197D
RGBrgb(52, 25, 125)
HSLhsl(256, 67%, 29%)
HSVhsv(256, 80%, 49%)
CMYKcmyk(58.4%, 80%, 0%, 51%)
CIE-LABlab(19.66, 39.26, -51.58)
CIE-LCHlch(19.66, 64.82, 307.28°)
OKLaboklab(32.51% 0.0439 -0.1485)
OKLCHoklch(32.51% 0.155 286.5)
XYZxyz(5.4644, 2.9057, 19.6710)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34197D #627D19
analogous
#19307D #34197D #66197D
triadic
#34197D #7D3419 #197D34
tetradic
#34197D #7D1930 #627D19 #197D66
square
#34197D #7D1930 #627D19 #197D66
split-complementary
#34197D #7D6619 #307D19
monochromatic
#0B051A #1F0F4A #34197D #4923B0 #6439D7

Accessibility & contrast

On white

13.28
#34197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34197D
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34197D#FFFFFF#000000##FFFFFF
##34197D1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#11364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34197d;
/* rgb */ color: rgb(52, 25, 125);
/* oklch */ color: oklch(32.5% 0.155 286.5);
Tailwind
colors: {
  custom: {
    50: '#7559a4',
    500: '#34197d',
    950: '#000000',
  },
}
SCSS
$custom: #34197d;
$custom-light: #7559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34197d",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 256.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3251,
    "c": 0.15485,
    "h": 286.5
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#34197D
secondary
#93B140
accent
#EA3EBB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34197D

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

Preview Lab → · Contrast checker → · Palette generator →

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