#34125E#34125E

#34125E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.125 H 298.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#34125E
RGBrgb(52, 18, 94)
HSLhsl(267, 68%, 22%)
HSVhsv(267, 81%, 37%)
CMYKcmyk(44.7%, 80.9%, 0%, 63.1%)
CIE-LABlab(15.33, 33.67, -38.49)
CIE-LCHlch(15.33, 51.13, 311.18°)
OKLaboklab(28.53% 0.0593 -0.1101)
OKLCHoklch(28.53% 0.125 298.3)
XYZxyz(3.6523, 1.9708, 10.7755)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125E #3C5E12
analogous
#12165E #34125E #5A125E
triadic
#34125E #5E3412 #125E34
tetradic
#34125E #5E1216 #3C5E12 #125E5A
square
#34125E #5E1216 #3C5E12 #125E5A
split-complementary
#34125E #5E5A12 #165E12
monochromatic
#0E051A #18082B #34125E #501C91 #6D26C5

Accessibility & contrast

On white

15.06
#34125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34125E
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125E#FFFFFF#000000##FFFFFF
##34125E1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#292637
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34125e;
/* rgb */ color: rgb(52, 18, 94);
/* oklch */ color: oklch(28.5% 0.125 298.3);
Tailwind
colors: {
  custom: {
    50: '#70548c',
    500: '#34125e',
    950: '#000000',
  },
}
SCSS
$custom: #34125e;
$custom-light: #70548c;
$custom-dark: #000000;
JSON
{
  "hex": "#34125e",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 266.842,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28531,
    "c": 0.12502,
    "h": 298.3
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#34125E
secondary
#6B9635
accent
#EB3D9D
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125E

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

Preview Lab → · Contrast checker → · Palette generator →

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