#34125B#34125B

#34125B is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.121 H 299.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#34125B
RGBrgb(52, 18, 91)
HSLhsl(268, 67%, 21%)
HSVhsv(268, 80%, 36%)
CMYKcmyk(42.9%, 80.2%, 0%, 64.3%)
CIE-LABlab(15.05, 32.83, -36.94)
CIE-LCHlch(15.05, 49.42, 311.63°)
OKLaboklab(28.24% 0.0601 -0.1055)
OKLCHoklch(28.24% 0.121 299.6)
XYZxyz(3.5203, 1.9180, 10.0802)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125B #395B12
analogous
#12155B #34125B #59125B
triadic
#34125B #5B3412 #125B34
tetradic
#34125B #5B1215 #395B12 #125B59
square
#34125B #5B1215 #395B12 #125B59
split-complementary
#34125B #5B5912 #155B12
monochromatic
#0F051A #170828 #34125B #511C8E #6E26C1

Accessibility & contrast

On white

15.18
#34125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#34125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34125B
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125B#FFFFFF#000000##FFFFFF
##34125B1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#2B2535
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34125b;
/* rgb */ color: rgb(52, 18, 91);
/* oklch */ color: oklch(28.2% 0.121 299.6);
Tailwind
colors: {
  custom: {
    50: '#70548a',
    500: '#34125b',
    950: '#000000',
  },
}
SCSS
$custom: #34125b;
$custom-light: #70548a;
$custom-dark: #000000;
JSON
{
  "hex": "#34125b",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 267.945,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28245,
    "c": 0.12144,
    "h": 299.6
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#34125B
secondary
#689335
accent
#EA3E9A
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125B

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

Preview Lab → · Contrast checker → · Palette generator →

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