#34137F#34137F

#34137F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.163 H 286.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#34137F
RGBrgb(52, 19, 127)
HSLhsl(258, 74%, 29%)
HSVhsv(258, 85%, 50%)
CMYKcmyk(59.1%, 85%, 0%, 50.2%)
CIE-LABlab(18.92, 42.63, -54.07)
CIE-LCHlch(18.92, 68.86, 308.25°)
OKLaboklab(32.06% 0.0472 -0.1557)
OKLCHoklch(32.06% 0.163 286.9)
XYZxyz(5.4787, 2.7278, 20.3124)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34137F #5E7F13
analogous
#13287F #34137F #6A137F
triadic
#34137F #7F3413 #137F34
tetradic
#34137F #7F1328 #5E7F13 #137F6A
square
#34137F #7F1328 #5E7F13 #137F6A
split-complementary
#34137F #7F6A13 #287F13
monochromatic
#0B041B #1E0B4A #34137F #4A1BB4 #632DE0

Accessibility & contrast

On white

13.59
#34137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34137F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34137F#FFFFFF#000000##FFFFFF
##34137F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#0F344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34137f;
/* rgb */ color: rgb(52, 19, 127);
/* oklch */ color: oklch(32.1% 0.163 286.9);
Tailwind
colors: {
  custom: {
    50: '#7657a5',
    500: '#34137f',
    950: '#000000',
  },
}
SCSS
$custom: #34137f;
$custom-light: #7657a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34137f",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 258.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32059,
    "c": 0.16272,
    "h": 286.9
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#34137F
secondary
#8FB439
accent
#F137B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34137F

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

Preview Lab → · Contrast checker → · Palette generator →

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