#34156E#34156E

#34156E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.141 H 291.5°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#34156E
RGBrgb(52, 21, 110)
HSLhsl(261, 68%, 26%)
HSVhsv(261, 81%, 43%)
CMYKcmyk(52.7%, 80.9%, 0%, 56.9%)
CIE-LABlab(17.42, 36.79, -45.61)
CIE-LCHlch(17.42, 58.60, 308.89°)
OKLaboklab(30.48% 0.0517 -0.131)
OKLCHoklch(30.48% 0.141 291.5)
XYZxyz(4.4980, 2.3920, 14.9735)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34156E #4F6E15
analogous
#15226E #34156E #60156E
triadic
#34156E #6E3415 #156E34
tetradic
#34156E #6E1522 #4F6E15 #156E60
square
#34156E #6E1522 #4F6E15 #156E60
split-complementary
#34156E #6E6015 #226E15
monochromatic
#0C051A #1C0B3B #34156E #4C1FA1 #6529D5

Accessibility & contrast

On white

14.20
#34156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34156E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34156E#FFFFFF#000000##FFFFFF
##34156E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34156e;
/* rgb */ color: rgb(52, 21, 110);
/* oklch */ color: oklch(30.5% 0.141 291.5);
Tailwind
colors: {
  custom: {
    50: '#735698',
    500: '#34156e',
    950: '#000000',
  },
}
SCSS
$custom: #34156e;
$custom-light: #735698;
$custom-dark: #000000;
JSON
{
  "hex": "#34156e",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 260.899,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30478,
    "c": 0.14083,
    "h": 291.5
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#34156E
secondary
#7FA43A
accent
#EB3DAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34156E

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

Preview Lab → · Contrast checker → · Palette generator →

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