#34147C#34147C

#34147C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.158 H 287.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#34147C
RGBrgb(52, 20, 124)
HSLhsl(258, 72%, 28%)
HSVhsv(258, 84%, 49%)
CMYKcmyk(58.1%, 83.9%, 0%, 51.4%)
CIE-LABlab(18.74, 41.33, -52.46)
CIE-LCHlch(18.74, 66.79, 308.23°)
OKLaboklab(31.84% 0.0477 -0.151)
OKLCHoklch(31.84% 0.158 287.5)
XYZxyz(5.3033, 2.6853, 19.3037)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34147C #5C7C14
analogous
#14287C #34147C #68147C
triadic
#34147C #7C3414 #147C34
tetradic
#34147C #7C1428 #5C7C14 #147C68
square
#34147C #7C1428 #5C7C14 #147C68
split-complementary
#34147C #7C6814 #287C14
monochromatic
#0B041A #1E0B47 #34147C #4A1DB1 #632DDD

Accessibility & contrast

On white

13.66
#34147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#34147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34147C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34147C#FFFFFF#000000##FFFFFF
##34147C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34147c;
/* rgb */ color: rgb(52, 20, 124);
/* oklch */ color: oklch(31.8% 0.158 287.5);
Tailwind
colors: {
  custom: {
    50: '#7557a3',
    500: '#34147c',
    950: '#000000',
  },
}
SCSS
$custom: #34147c;
$custom-light: #7557a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34147c",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 258.462,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.15838,
    "h": 287.5
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#34147C
secondary
#8DB23A
accent
#EF39B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34147C

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

Preview Lab → · Contrast checker → · Palette generator →

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