#34147F#34147F

#34147F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 286.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#34147F
RGBrgb(52, 20, 127)
HSLhsl(258, 73%, 29%)
HSVhsv(258, 84%, 50%)
CMYKcmyk(59.1%, 84.3%, 0%, 50.2%)
CIE-LABlab(19.07, 42.20, -53.83)
CIE-LCHlch(19.07, 68.40, 308.09°)
OKLaboklab(32.16% 0.0466 -0.155)
OKLCHoklch(32.16% 0.162 286.7)
XYZxyz(5.4959, 2.7624, 20.3181)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34147F #5F7F14
analogous
#142A7F #34147F #6A147F
triadic
#34147F #7F3414 #147F34
tetradic
#34147F #7F142A #5F7F14 #147F6A
square
#34147F #7F142A #5F7F14 #147F6A
split-complementary
#34147F #7F6A14 #2A7F14
monochromatic
#0B041A #1E0C4A #34147F #4A1CB4 #642FDE

Accessibility & contrast

On white

13.53
#34147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34147F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34147F#FFFFFF#000000##FFFFFF
##34147F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34147f;
/* rgb */ color: rgb(52, 20, 127);
/* oklch */ color: oklch(32.2% 0.162 286.7);
Tailwind
colors: {
  custom: {
    50: '#7657a5',
    500: '#34147f',
    950: '#000000',
  },
}
SCSS
$custom: #34147f;
$custom-light: #7657a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34147f",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 257.944,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3216,
    "c": 0.16187,
    "h": 286.7
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#34147F
secondary
#90B43B
accent
#EF38B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34147F

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

Preview Lab → · Contrast checker → · Palette generator →

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