#34148A#34148A

#34148A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.175 H 284.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#34148A
RGBrgb(52, 20, 138)
HSLhsl(256, 75%, 31%)
HSVhsv(256, 86%, 54%)
CMYKcmyk(62.3%, 85.5%, 0%, 45.9%)
CIE-LABlab(20.30, 45.37, -58.73)
CIE-LCHlch(20.30, 74.21, 307.69°)
OKLaboklab(33.38% 0.0425 -0.1693)
OKLCHoklch(33.38% 0.175 284.1)
XYZxyz(6.2524, 3.0649, 24.3019)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34148A #6A8A14
analogous
#142F8A #34148A #6F148A
triadic
#34148A #8A3414 #148A34
tetradic
#34148A #8A142F #6A8A14 #148A6F
square
#34148A #8A142F #6A8A14 #148A6F
split-complementary
#34148A #8A6F14 #2F8A14
monochromatic
#0C051F #200C55 #34148A #481CBF #6536E2

Accessibility & contrast

On white

13.02
#34148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#34148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34148A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34148A#FFFFFF#000000##FFFFFF
##34148A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #34148a;
/* rgb */ color: rgb(52, 20, 138);
/* oklch */ color: oklch(33.4% 0.175 284.1);
Tailwind
colors: {
  custom: {
    50: '#7858ad',
    500: '#34148a',
    950: '#000000',
  },
}
SCSS
$custom: #34148a;
$custom-light: #7858ad;
$custom-dark: #000000;
JSON
{
  "hex": "#34148a",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 256.271,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33376,
    "c": 0.17456,
    "h": 284.1
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#34148A
secondary
#9BBE3C
accent
#F136BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34148A

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

Preview Lab → · Contrast checker → · Palette generator →

#34148A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva