#34137C#34137C

#34137C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.159 H 287.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#34137C
RGBrgb(52, 19, 124)
HSLhsl(259, 73%, 28%)
HSVhsv(259, 85%, 49%)
CMYKcmyk(58.1%, 84.7%, 0%, 51.4%)
CIE-LABlab(18.59, 41.77, -52.71)
CIE-LCHlch(18.59, 67.25, 308.40°)
OKLaboklab(31.73% 0.0483 -0.1517)
OKLCHoklch(31.73% 0.159 287.7)
XYZxyz(5.2861, 2.6508, 19.2980)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34137C #5B7C13
analogous
#13267C #34137C #68137C
triadic
#34137C #7C3413 #137C34
tetradic
#34137C #7C1326 #5B7C13 #137C68
square
#34137C #7C1326 #5B7C13 #137C68
split-complementary
#34137C #7C6813 #267C13
monochromatic
#0B041B #1E0B47 #34137C #4A1BB1 #632BDF

Accessibility & contrast

On white

13.72
#34137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#34137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34137C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34137C#FFFFFF#000000##FFFFFF
##34137C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#133349
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #34137c;
/* rgb */ color: rgb(52, 19, 124);
/* oklch */ color: oklch(31.7% 0.159 287.7);
Tailwind
colors: {
  custom: {
    50: '#7556a3',
    500: '#34137c',
    950: '#000000',
  },
}
SCSS
$custom: #34137c;
$custom-light: #7556a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34137c",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 258.857,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31731,
    "c": 0.15925,
    "h": 287.7
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#34137C
secondary
#8CB239
accent
#F038B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34137C

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

Preview Lab → · Contrast checker → · Palette generator →

#34137C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva