#34198F#34198F

#34198F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.176 H 282.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#34198F
RGBrgb(52, 25, 143)
HSLhsl(254, 70%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(63.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(21.61, 44.65, -59.69)
CIE-LCHlch(21.61, 74.54, 306.80°)
OKLaboklab(34.44% 0.0381 -0.1722)
OKLCHoklch(34.44% 0.176 282.5)
XYZxyz(6.7202, 3.4080, 26.2850)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34198F #748F19
analogous
#19398F #34198F #6F198F
triadic
#34198F #8F3419 #198F34
tetradic
#34198F #8F1939 #748F19 #198F6F
square
#34198F #8F1939 #748F19 #198F6F
split-complementary
#34198F #8F6F19 #398F19
monochromatic
#0E0727 #21105B #34198F #4722C3 #6744DE

Accessibility & contrast

On white

12.49
#34198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#34198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34198F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34198F#FFFFFF#000000##FFFFFF
##34198F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #34198f;
/* rgb */ color: rgb(52, 25, 143);
/* oklch */ color: oklch(34.4% 0.176 282.5);
Tailwind
colors: {
  custom: {
    50: '#795bb1',
    500: '#34198f',
    950: '#000000',
  },
}
SCSS
$custom: #34198f;
$custom-light: #795bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#34198f",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 253.729,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34443,
    "c": 0.17633,
    "h": 282.5
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#34198F
secondary
#A3BF44
accent
#ED3BC4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34198F

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

Preview Lab → · Contrast checker → · Palette generator →

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