#34125C#34125C

#34125C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.123 H 299.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#34125C
RGBrgb(52, 18, 92)
HSLhsl(268, 67%, 22%)
HSVhsv(268, 80%, 36%)
CMYKcmyk(43.5%, 80.4%, 0%, 63.9%)
CIE-LABlab(15.14, 33.11, -37.46)
CIE-LCHlch(15.14, 49.99, 311.47°)
OKLaboklab(28.34% 0.0598 -0.1071)
OKLCHoklch(28.34% 0.123 299.2)
XYZxyz(3.5638, 1.9353, 10.3089)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125C #3A5C12
analogous
#12155C #34125C #59125C
triadic
#34125C #5C3412 #125C34
tetradic
#34125C #5C1215 #3A5C12 #125C59
square
#34125C #5C1215 #3A5C12 #125C59
split-complementary
#34125C #5C5912 #155C12
monochromatic
#0E051A #170829 #34125C #511C8F #6E26C2

Accessibility & contrast

On white

15.14
#34125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#34125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34125C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125C#FFFFFF#000000##FFFFFF
##34125C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#2A2536
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34125c;
/* rgb */ color: rgb(52, 18, 92);
/* oklch */ color: oklch(28.3% 0.123 299.2);
Tailwind
colors: {
  custom: {
    50: '#70548b',
    500: '#34125c',
    950: '#000000',
  },
}
SCSS
$custom: #34125c;
$custom-light: #70548b;
$custom-dark: #000000;
JSON
{
  "hex": "#34125c",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 267.568,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2834,
    "c": 0.12263,
    "h": 299.2
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#34125C
secondary
#699435
accent
#EA3E9B
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125C

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

Preview Lab → · Contrast checker → · Palette generator →

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