#34124D#34124D

#34124D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.105 H 307.1°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#34124D
RGBrgb(52, 18, 77)
HSLhsl(275, 62%, 19%)
HSVhsv(275, 77%, 30%)
CMYKcmyk(32.5%, 76.6%, 0%, 69.8%)
CIE-LABlab(13.82, 28.99, -29.43)
CIE-LCHlch(13.82, 41.31, 314.57°)
OKLaboklab(26.99% 0.0631 -0.0835)
OKLCHoklch(26.99% 0.105 307.1)
XYZxyz(2.9718, 1.6985, 7.1910)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34124D #2B4D12
analogous
#16124D #34124D #4D1248
triadic
#34124D #4D3412 #124D34
tetradic
#34124D #4D1612 #2B4D12 #12484D
square
#34124D #4D1612 #2B4D12 #12484D
split-complementary
#34124D #484D12 #124D16
monochromatic
#110619 #12061B #34124D #551E7F #7729B0

Accessibility & contrast

On white

15.68
#34124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#34124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34124D
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34124D#FFFFFF#000000##FFFFFF
##34124D1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#03234C
Tritanopia (blue-blind)
#301F2E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #34124d;
/* rgb */ color: rgb(52, 18, 77);
/* oklch */ color: oklch(27.0% 0.105 307.1);
Tailwind
colors: {
  custom: {
    50: '#6e537f',
    500: '#34124d',
    950: '#000000',
  },
}
SCSS
$custom: #34124d;
$custom-light: #6e537f;
$custom-dark: #000000;
JSON
{
  "hex": "#34124d",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 274.576,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.10461,
    "h": 307.1
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#34124D
secondary
#578635
accent
#E54388
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #34124D

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

Preview Lab → · Contrast checker → · Palette generator →

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