#34199E#34199E

#34199E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.194 H 279.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#34199E
RGBrgb(52, 25, 158)
HSLhsl(252, 73%, 36%)
HSVhsv(252, 84%, 62%)
CMYKcmyk(67.1%, 84.2%, 0%, 38%)
CIE-LABlab(23.32, 49.05, -66.11)
CIE-LCHlch(23.32, 82.32, 306.57°)
OKLaboklab(36.12% 0.033 -0.1909)
OKLCHoklch(36.12% 0.194 279.8)
XYZxyz(7.9334, 3.8933, 32.6745)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34199E #839E19
analogous
#19419E #34199E #76199E
triadic
#34199E #9E3419 #199E34
tetradic
#34199E #9E1941 #839E19 #199E76
square
#34199E #9E1941 #839E19 #199E76
split-complementary
#34199E #9E7619 #419E19
monochromatic
#110834 #231169 #34199E #4521D3 #6D4EE3

Accessibility & contrast

On white

11.81
#34199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#34199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34199E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34199E#FFFFFF#000000##FFFFFF
##34199E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #34199e;
/* rgb */ color: rgb(52, 25, 158);
/* oklch */ color: oklch(36.1% 0.194 279.8);
Tailwind
colors: {
  custom: {
    50: '#7c5cbc',
    500: '#34199e',
    950: '#000000',
  },
}
SCSS
$custom: #34199e;
$custom-light: #7c5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#34199e",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 252.18,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3612,
    "c": 0.19371,
    "h": 279.8
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#34199E
secondary
#ADC54E
accent
#EF38CA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #34199E

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

Preview Lab → · Contrast checker → · Palette generator →

#34199E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva