#34124C#34124C

#34124C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.103 H 307.7°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#34124C
RGBrgb(52, 18, 76)
HSLhsl(275, 62%, 18%)
HSVhsv(275, 76%, 30%)
CMYKcmyk(31.6%, 76.3%, 0%, 70.2%)
CIE-LABlab(13.74, 28.72, -28.88)
CIE-LCHlch(13.74, 40.73, 314.85°)
OKLaboklab(26.9% 0.0632 -0.0818)
OKLCHoklch(26.9% 0.103 307.7)
XYZxyz(2.9367, 1.6845, 7.0065)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34124C #2A4C12
analogous
#17124C #34124C #4C1247
triadic
#34124C #4C3412 #124C34
tetradic
#34124C #4C1712 #2A4C12 #12474C
square
#34124C #4C1712 #2A4C12 #12474C
split-complementary
#34124C #474C12 #124C17
monochromatic
#110619 #12061B #34124C #561E7D #7829AF

Accessibility & contrast

On white

15.71
#34124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34124C
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34124C#FFFFFF#000000##FFFFFF
##34124C1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#04234B
Tritanopia (blue-blind)
#301F2D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #34124c;
/* rgb */ color: rgb(52, 18, 76);
/* oklch */ color: oklch(26.9% 0.103 307.7);
Tailwind
colors: {
  custom: {
    50: '#6e537e',
    500: '#34124c',
    950: '#000000',
  },
}
SCSS
$custom: #34124c;
$custom-light: #6e537e;
$custom-dark: #000000;
JSON
{
  "hex": "#34124c",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 275.172,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26902,
    "c": 0.10341,
    "h": 307.7
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#34124C
secondary
#568535
accent
#E54386
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #34124C

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

Preview Lab → · Contrast checker → · Palette generator →

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