#34124A#34124A

#34124A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.101 H 308.9°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#34124A
RGBrgb(52, 18, 74)
HSLhsl(276, 61%, 18%)
HSVhsv(276, 76%, 29%)
CMYKcmyk(29.7%, 75.7%, 0%, 71%)
CIE-LABlab(13.57, 28.19, -27.76)
CIE-LCHlch(13.57, 39.56, 315.45°)
OKLaboklab(26.73% 0.0635 -0.0785)
OKLCHoklch(26.73% 0.101 308.9)
XYZxyz(2.8683, 1.6571, 6.6460)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34124A #284A12
analogous
#18124A #34124A #4A1244
triadic
#34124A #4A3412 #124A34
tetradic
#34124A #4A1812 #284A12 #12444A
square
#34124A #4A1812 #284A12 #12444A
split-complementary
#34124A #444A12 #124A18
monochromatic
#110619 #110619 #34124A #571E7B #792AAC

Accessibility & contrast

On white

15.77
#34124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#34124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34124A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34124A#FFFFFF#000000##FFFFFF
##34124A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#072349
Tritanopia (blue-blind)
#311E2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #34124a;
/* rgb */ color: rgb(52, 18, 74);
/* oklch */ color: oklch(26.7% 0.101 308.9);
Tailwind
colors: {
  custom: {
    50: '#6e537d',
    500: '#34124a',
    950: '#000000',
  },
}
SCSS
$custom: #34124a;
$custom-light: #6e537d;
$custom-dark: #000000;
JSON
{
  "hex": "#34124a",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 276.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26734,
    "c": 0.101,
    "h": 308.9
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#34124A
secondary
#548335
accent
#E44483
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #34124A

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

Preview Lab → · Contrast checker → · Palette generator →

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