#34199F#34199F

#34199F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.195 H 279.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#34199F
RGBrgb(52, 25, 159)
HSLhsl(252, 73%, 36%)
HSVhsv(252, 84%, 62%)
CMYKcmyk(67.3%, 84.3%, 0%, 37.6%)
CIE-LABlab(23.43, 49.34, -66.53)
CIE-LCHlch(23.43, 82.83, 306.56°)
OKLaboklab(36.23% 0.0327 -0.1921)
OKLCHoklch(36.23% 0.195 279.7)
XYZxyz(8.0198, 3.9279, 33.1297)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34199F #849F19
analogous
#19419F #34199F #77199F
triadic
#34199F #9F3419 #199F34
tetradic
#34199F #9F1941 #849F19 #199F77
square
#34199F #9F1941 #849F19 #199F77
split-complementary
#34199F #9F7719 #419F19
monochromatic
#110835 #23116A #34199F #4521D4 #6D4FE3

Accessibility & contrast

On white

11.76
#34199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#34199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34199F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34199F#FFFFFF#000000##FFFFFF
##34199F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #34199f;
/* rgb */ color: rgb(52, 25, 159);
/* oklch */ color: oklch(36.2% 0.195 279.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cbd',
    500: '#34199f',
    950: '#000000',
  },
}
SCSS
$custom: #34199f;
$custom-light: #7c5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#34199f",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 252.09,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36234,
    "c": 0.19484,
    "h": 279.7
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#34199F
secondary
#AEC64E
accent
#F038CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #34199F

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

Preview Lab → · Contrast checker → · Palette generator →

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