#34125F#34125F

#34125F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.126 H 297.9°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#34125F
RGBrgb(52, 18, 95)
HSLhsl(266, 68%, 22%)
HSVhsv(266, 81%, 37%)
CMYKcmyk(45.3%, 81.1%, 0%, 62.7%)
CIE-LABlab(15.43, 33.95, -39.00)
CIE-LCHlch(15.43, 51.71, 311.04°)
OKLaboklab(28.63% 0.059 -0.1116)
OKLCHoklch(28.63% 0.126 297.9)
XYZxyz(3.6975, 1.9888, 11.0133)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125F #3D5F12
analogous
#12165F #34125F #5B125F
triadic
#34125F #5F3412 #125F34
tetradic
#34125F #5F1216 #3D5F12 #125F5B
square
#34125F #5F1216 #3D5F12 #125F5B
split-complementary
#34125F #5F5B12 #165F12
monochromatic
#0E051A #18082C #34125F #501C92 #6C25C6

Accessibility & contrast

On white

15.02
#34125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#34125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34125F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125F#FFFFFF#000000##FFFFFF
##34125F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#292638
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34125f;
/* rgb */ color: rgb(52, 18, 95);
/* oklch */ color: oklch(28.6% 0.126 297.9);
Tailwind
colors: {
  custom: {
    50: '#71548d',
    500: '#34125f',
    950: '#000000',
  },
}
SCSS
$custom: #34125f;
$custom-light: #71548d;
$custom-dark: #000000;
JSON
{
  "hex": "#34125f",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 266.494,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28628,
    "c": 0.12621,
    "h": 297.9
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#34125F
secondary
#6C9736
accent
#EB3D9E
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125F

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

Preview Lab → · Contrast checker → · Palette generator →

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