#34196B#34196B

#34196B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.133 H 291.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#34196B
RGBrgb(52, 25, 107)
HSLhsl(260, 62%, 26%)
HSVhsv(260, 77%, 42%)
CMYKcmyk(51.4%, 76.6%, 0%, 58%)
CIE-LABlab(17.86, 33.82, -42.94)
CIE-LCHlch(17.86, 54.66, 308.23°)
OKLaboklab(30.69% 0.049 -0.1232)
OKLCHoklch(30.69% 0.133 291.7)
XYZxyz(4.4169, 2.4867, 14.1543)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34196B #506B19
analogous
#19276B #34196B #5D196B
triadic
#34196B #6B3419 #196B34
tetradic
#34196B #6B1927 #506B19 #196B5D
square
#34196B #6B1927 #506B19 #196B5D
split-complementary
#34196B #6B5D19 #276B19
monochromatic
#0C0619 #1C0D39 #34196B #4C259D #6430CE

Accessibility & contrast

On white

14.02
#34196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#34196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34196B
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34196B#FFFFFF#000000##FFFFFF
##34196B1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#222F40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #34196b;
/* rgb */ color: rgb(52, 25, 107);
/* oklch */ color: oklch(30.7% 0.133 291.7);
Tailwind
colors: {
  custom: {
    50: '#725896',
    500: '#34196b',
    950: '#000000',
  },
}
SCSS
$custom: #34196b;
$custom-light: #725896;
$custom-dark: #000000;
JSON
{
  "hex": "#34196b",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 259.756,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30693,
    "c": 0.13258,
    "h": 291.7
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#34196B
secondary
#81A13F
accent
#E543B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34196B

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

Preview Lab → · Contrast checker → · Palette generator →

#34196B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva