#34147D#34147D

#34147D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.160 H 287.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#34147D
RGBrgb(52, 20, 125)
HSLhsl(258, 72%, 28%)
HSVhsv(258, 84%, 49%)
CMYKcmyk(58.4%, 84%, 0%, 51%)
CIE-LABlab(18.85, 41.62, -52.92)
CIE-LCHlch(18.85, 67.33, 308.19°)
OKLaboklab(31.94% 0.0473 -0.1524)
OKLCHoklch(31.94% 0.16 287.3)
XYZxyz(5.3669, 2.7107, 19.6385)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34147D #5D7D14
analogous
#14287D #34147D #68147D
triadic
#34147D #7D3414 #147D34
tetradic
#34147D #7D1428 #5D7D14 #147D68
square
#34147D #7D1428 #5D7D14 #147D68
split-complementary
#34147D #7D6814 #287D14
monochromatic
#0B041A #1E0C48 #34147D #4A1CB2 #632EDE

Accessibility & contrast

On white

13.62
#34147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34147D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34147D#FFFFFF#000000##FFFFFF
##34147D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#123449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34147d;
/* rgb */ color: rgb(52, 20, 125);
/* oklch */ color: oklch(31.9% 0.160 287.3);
Tailwind
colors: {
  custom: {
    50: '#7557a4',
    500: '#34147d',
    950: '#000000',
  },
}
SCSS
$custom: #34147d;
$custom-light: #7557a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34147d",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 258.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31943,
    "c": 0.15955,
    "h": 287.3
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#34147D
secondary
#8EB23A
accent
#EF39B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34147D

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

Preview Lab → · Contrast checker → · Palette generator →

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