#34125A#34125A

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

Color values

HEX#34125A
RGBrgb(52, 18, 90)
HSLhsl(268, 67%, 21%)
HSVhsv(268, 80%, 35%)
CMYKcmyk(42.2%, 80%, 0%, 64.7%)
CIE-LABlab(14.96, 32.55, -36.42)
CIE-LCHlch(14.96, 48.85, 311.79°)
OKLaboklab(28.15% 0.0603 -0.104)
OKLCHoklch(28.15% 0.12 300.1)
XYZxyz(3.4775, 1.9008, 9.8546)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125A #385A12
analogous
#12145A #34125A #58125A
triadic
#34125A #5A3412 #125A34
tetradic
#34125A #5A1214 #385A12 #125A58
square
#34125A #5A1214 #385A12 #125A58
split-complementary
#34125A #5A5812 #145A12
monochromatic
#0F051A #170827 #34125A #511C8D #6F26C0

Accessibility & contrast

On white

15.22
#34125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34125A
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125A#FFFFFF#000000##FFFFFF
##34125A1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#2B2435
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34125a;
/* rgb */ color: rgb(52, 18, 90);
/* oklch */ color: oklch(28.2% 0.120 300.1);
Tailwind
colors: {
  custom: {
    50: '#705489',
    500: '#34125a',
    950: '#000000',
  },
}
SCSS
$custom: #34125a;
$custom-light: #705489;
$custom-dark: #000000;
JSON
{
  "hex": "#34125a",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 268.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28151,
    "c": 0.12024,
    "h": 300.1
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#34125A
secondary
#669335
accent
#EA3E99
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125A

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

Preview Lab → · Contrast checker → · Palette generator →

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