#34189F#34189F

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

Color values

HEX#34189F
RGBrgb(52, 24, 159)
HSLhsl(252, 74%, 36%)
HSVhsv(252, 85%, 62%)
CMYKcmyk(67.3%, 84.9%, 0%, 37.6%)
CIE-LABlab(23.29, 49.76, -66.77)
CIE-LCHlch(23.29, 83.27, 306.69°)
OKLaboklab(36.14% 0.0331 -0.1927)
OKLCHoklch(36.14% 0.196 279.7)
XYZxyz(7.9988, 3.8859, 33.1227)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34189F #839F18
analogous
#18409F #34189F #77189F
triadic
#34189F #9F3418 #189F34
tetradic
#34189F #9F1840 #839F18 #189F77
square
#34189F #9F1840 #839F18 #189F77
split-complementary
#34189F #9F7718 #409F18
monochromatic
#110835 #23106A #34189F #4520D4 #6D4DE4

Accessibility & contrast

On white

11.82
#34189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#34189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34189F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34189F#FFFFFF#000000##FFFFFF
##34189F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34189f;
/* rgb */ color: rgb(52, 24, 159);
/* oklch */ color: oklch(36.1% 0.196 279.7);
Tailwind
colors: {
  custom: {
    50: '#7c5bbd',
    500: '#34189f',
    950: '#000000',
  },
}
SCSS
$custom: #34189f;
$custom-light: #7c5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#34189f",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 252.444,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36137,
    "c": 0.19556,
    "h": 279.7
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#34189F
secondary
#ADC64D
accent
#F037CA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #34189F

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

Preview Lab → · Contrast checker → · Palette generator →

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