#34124F#34124F

#34124F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.107 H 305.9°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#34124F
RGBrgb(52, 18, 79)
HSLhsl(273, 63%, 19%)
HSVhsv(273, 77%, 31%)
CMYKcmyk(34.2%, 77.2%, 0%, 69%)
CIE-LABlab(13.99, 29.53, -30.54)
CIE-LCHlch(13.99, 42.48, 314.04°)
OKLaboklab(27.16% 0.0627 -0.0867)
OKLCHoklch(27.16% 0.107 305.9)
XYZxyz(3.0435, 1.7272, 7.5687)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34124F #2D4F12
analogous
#16124F #34124F #4F124C
triadic
#34124F #4F3412 #124F34
tetradic
#34124F #4F1612 #2D4F12 #124C4F
square
#34124F #4F1612 #2D4F12 #124C4F
split-complementary
#34124F #4C4F12 #124F16
monochromatic
#100619 #13071D #34124F #551D81 #7629B3

Accessibility & contrast

On white

15.61
#34124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#34124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34124F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34124F#FFFFFF#000000##FFFFFF
##34124F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00244E
Tritanopia (blue-blind)
#2F202F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #34124f;
/* rgb */ color: rgb(52, 18, 79);
/* oklch */ color: oklch(27.2% 0.107 305.9);
Tailwind
colors: {
  custom: {
    50: '#6f5381',
    500: '#34124f',
    950: '#000000',
  },
}
SCSS
$custom: #34124f;
$custom-light: #6f5381;
$custom-dark: #000000;
JSON
{
  "hex": "#34124f",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 273.443,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27158,
    "c": 0.10703,
    "h": 305.9
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#34124F
secondary
#5A8835
accent
#E6428A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #34124F

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

Preview Lab → · Contrast checker → · Palette generator →

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