#34156F#34156F

#34156F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.142 H 291.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#34156F
RGBrgb(52, 21, 111)
HSLhsl(261, 68%, 26%)
HSVhsv(261, 81%, 44%)
CMYKcmyk(53.2%, 81.1%, 0%, 56.5%)
CIE-LABlab(17.52, 37.08, -46.09)
CIE-LCHlch(17.52, 59.16, 308.82°)
OKLaboklab(30.58% 0.0514 -0.1324)
OKLCHoklch(30.58% 0.142 291.2)
XYZxyz(4.5528, 2.4139, 15.2619)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34156F #506F15
analogous
#15236F #34156F #61156F
triadic
#34156F #6F3415 #156F34
tetradic
#34156F #6F1523 #506F15 #156F61
square
#34156F #6F1523 #506F15 #156F61
split-complementary
#34156F #6F6115 #236F15
monochromatic
#0C051A #1C0B3C #34156F #4C1FA2 #6428D6

Accessibility & contrast

On white

14.16
#34156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#34156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34156F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34156F#FFFFFF#000000##FFFFFF
##34156F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#202E41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34156f;
/* rgb */ color: rgb(52, 21, 111);
/* oklch */ color: oklch(30.6% 0.142 291.2);
Tailwind
colors: {
  custom: {
    50: '#735699',
    500: '#34156f',
    950: '#000000',
  },
}
SCSS
$custom: #34156f;
$custom-light: #735699;
$custom-dark: #000000;
JSON
{
  "hex": "#34156f",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 260.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3058,
    "c": 0.14204,
    "h": 291.2
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#34156F
secondary
#81A53A
accent
#EB3DAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34156F

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

Preview Lab → · Contrast checker → · Palette generator →

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