#34148D#34148D

#34148D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.178 H 283.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#34148D
RGBrgb(52, 20, 141)
HSLhsl(256, 75%, 32%)
HSVhsv(256, 86%, 55%)
CMYKcmyk(63.1%, 85.8%, 0%, 44.7%)
CIE-LABlab(20.65, 46.22, -60.03)
CIE-LCHlch(20.65, 75.77, 307.59°)
OKLaboklab(33.71% 0.0414 -0.1731)
OKLCHoklch(33.71% 0.178 283.4)
XYZxyz(6.4726, 3.1530, 25.4617)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34148D #6D8D14
analogous
#14318D #34148D #71148D
triadic
#34148D #8D3414 #148D34
tetradic
#34148D #8D1431 #6D8D14 #148D71
square
#34148D #8D1431 #6D8D14 #148D71
split-complementary
#34148D #8D7114 #318D14
monochromatic
#0C0522 #200C57 #34148D #481CC3 #6639E3

Accessibility & contrast

On white

12.88
#34148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#34148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34148D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34148D#FFFFFF#000000##FFFFFF
##34148D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34148d;
/* rgb */ color: rgb(52, 20, 141);
/* oklch */ color: oklch(33.7% 0.178 283.4);
Tailwind
colors: {
  custom: {
    50: '#7858b0',
    500: '#34148d',
    950: '#000000',
  },
}
SCSS
$custom: #34148d;
$custom-light: #7858b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34148d",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 255.868,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33714,
    "c": 0.17798,
    "h": 283.4
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#34148D
secondary
#9EC13C
accent
#F236C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34148D

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

Preview Lab → · Contrast checker → · Palette generator →

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