#34157E#34157E

#34157E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.160 H 286.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#34157E
RGBrgb(52, 21, 126)
HSLhsl(258, 71%, 29%)
HSVhsv(258, 83%, 49%)
CMYKcmyk(58.7%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.11, 41.47, -53.12)
CIE-LCHlch(19.11, 67.39, 307.97°)
OKLaboklab(32.16% 0.0463 -0.153)
OKLCHoklch(32.16% 0.16 286.8)
XYZxyz(5.4491, 2.7724, 19.9826)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34157E #5F7E15
analogous
#152B7E #34157E #69157E
triadic
#34157E #7E3415 #157E34
tetradic
#34157E #7E152B #5F7E15 #157E69
square
#34157E #7E152B #5F7E15 #157E69
split-complementary
#34157E #7E6915 #2B7E15
monochromatic
#0B041A #1E0C4A #34157E #4A1EB2 #6431DD

Accessibility & contrast

On white

13.51
#34157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34157E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34157E#FFFFFF#000000##FFFFFF
##34157E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#10354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34157e;
/* rgb */ color: rgb(52, 21, 126);
/* oklch */ color: oklch(32.2% 0.160 286.8);
Tailwind
colors: {
  custom: {
    50: '#7657a4',
    500: '#34157e',
    950: '#000000',
  },
}
SCSS
$custom: #34157e;
$custom-light: #7657a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34157e",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 257.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32157,
    "c": 0.15984,
    "h": 286.8
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#34157E
secondary
#90B33C
accent
#EE3AB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34157E

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

Preview Lab → · Contrast checker → · Palette generator →

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