#34124B#34124B

#34124B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.102 H 308.3°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#34124B
RGBrgb(52, 18, 75)
HSLhsl(276, 61%, 18%)
HSVhsv(276, 76%, 29%)
CMYKcmyk(30.7%, 76%, 0%, 70.6%)
CIE-LABlab(13.65, 28.46, -28.32)
CIE-LCHlch(13.65, 40.15, 315.14°)
OKLaboklab(26.82% 0.0634 -0.0802)
OKLCHoklch(26.82% 0.102 308.3)
XYZxyz(2.9022, 1.6707, 6.8248)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34124B #294B12
analogous
#17124B #34124B #4B1245
triadic
#34124B #4B3412 #124B34
tetradic
#34124B #4B1712 #294B12 #12454B
square
#34124B #4B1712 #294B12 #12454B
split-complementary
#34124B #454B12 #124B17
monochromatic
#110619 #12061A #34124B #561E7C #782AAE

Accessibility & contrast

On white

15.74
#34124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34124B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34124B#FFFFFF#000000##FFFFFF
##34124B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#06234A
Tritanopia (blue-blind)
#301E2D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #34124b;
/* rgb */ color: rgb(52, 18, 75);
/* oklch */ color: oklch(26.8% 0.102 308.3);
Tailwind
colors: {
  custom: {
    50: '#6e537e',
    500: '#34124b',
    950: '#000000',
  },
}
SCSS
$custom: #34124b;
$custom-light: #6e537e;
$custom-dark: #000000;
JSON
{
  "hex": "#34124b",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 275.789,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26818,
    "c": 0.10221,
    "h": 308.3
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#34124B
secondary
#558435
accent
#E44384
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #34124B

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

Preview Lab → · Contrast checker → · Palette generator →

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