#34157B#34157B

#34157B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.156 H 287.6°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#34157B
RGBrgb(52, 21, 123)
HSLhsl(258, 71%, 28%)
HSVhsv(258, 83%, 48%)
CMYKcmyk(57.7%, 82.9%, 0%, 51.8%)
CIE-LABlab(18.78, 40.59, -51.75)
CIE-LCHlch(18.78, 65.77, 308.11°)
OKLaboklab(31.84% 0.0474 -0.149)
OKLCHoklch(31.84% 0.156 287.6)
XYZxyz(5.2584, 2.6962, 18.9784)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157B #5C7B15
analogous
#15297B #34157B #67157B
triadic
#34157B #7B3415 #157B34
tetradic
#34157B #7B1529 #5C7B15 #157B67
square
#34157B #7B1529 #5C7B15 #157B67
split-complementary
#34157B #7B6715 #297B15
monochromatic
#0B041A #1E0C47 #34157B #4A1EAF #632FDB

Accessibility & contrast

On white

13.64
#34157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#34157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157B
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157B#FFFFFF#000000##FFFFFF
##34157B1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#143348
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34157b;
/* rgb */ color: rgb(52, 21, 123);
/* oklch */ color: oklch(31.8% 0.156 287.6);
Tailwind
colors: {
  custom: {
    50: '#7557a2',
    500: '#34157b',
    950: '#000000',
  },
}
SCSS
$custom: #34157b;
$custom-light: #7557a2;
$custom-dark: #000000;
JSON
{
  "hex": "#34157b",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 258.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.15631,
    "h": 287.6
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#34157B
secondary
#8DB03B
accent
#EE3AB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34157B

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

Preview Lab → · Contrast checker → · Palette generator →

#34157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva