#34126A#34126A

#34126A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.139 H 293.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#34126A
RGBrgb(52, 18, 106)
HSLhsl(263, 71%, 24%)
HSVhsv(263, 83%, 42%)
CMYKcmyk(50.9%, 83%, 0%, 58.4%)
CIE-LABlab(16.52, 37.07, -44.48)
CIE-LCHlch(16.52, 57.90, 309.81°)
OKLaboklab(29.72% 0.0555 -0.1277)
OKLCHoklch(29.72% 0.139 293.5)
XYZxyz(4.2333, 2.2031, 13.8351)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34126A #486A12
analogous
#121C6A #34126A #60126A
triadic
#34126A #6A3412 #126A34
tetradic
#34126A #6A121C #486A12 #126A60
square
#34126A #6A121C #486A12 #126A60
split-complementary
#34126A #6A6012 #1C6A12
monochromatic
#0D041A #1A0936 #34126A #4E1B9E #6724D3

Accessibility & contrast

On white

14.58
#34126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#34126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34126A
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34126A#FFFFFF#000000##FFFFFF
##34126A1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#232B3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #34126a;
/* rgb */ color: rgb(52, 18, 106);
/* oklch */ color: oklch(29.7% 0.139 293.5);
Tailwind
colors: {
  custom: {
    50: '#725595',
    500: '#34126a',
    950: '#000000',
  },
}
SCSS
$custom: #34126a;
$custom-light: #725595;
$custom-dark: #000000;
JSON
{
  "hex": "#34126a",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 263.182,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29724,
    "c": 0.1392,
    "h": 293.5
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#34126A
secondary
#78A236
accent
#EE3AA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34126A

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

Preview Lab → · Contrast checker → · Palette generator →

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