#34236A#34236A

#34236A is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.2% C 0.118 H 289.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#34236A
RGBrgb(52, 35, 106)
HSLhsl(254, 50%, 28%)
HSVhsv(254, 67%, 42%)
CMYKcmyk(50.9%, 67%, 0%, 58.4%)
CIE-LABlab(19.93, 27.56, -38.90)
CIE-LCHlch(19.93, 47.68, 305.32°)
OKLaboklab(32.15% 0.0384 -0.1114)
OKLCHoklch(32.15% 0.118 289)
XYZxyz(4.6180, 2.9725, 13.9633)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34236A #596A23
analogous
#23356A #34236A #57236A
triadic
#34236A #6A3423 #236A34
tetradic
#34236A #6A2335 #596A23 #236A57
square
#34236A #6A2335 #596A23 #236A57
split-complementary
#34236A #6A5723 #356A23
monochromatic
#0B0817 #1D143C #34236A #4B3298 #6346C2

Accessibility & contrast

On white

13.17
#34236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#34236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34236A
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34236A#FFFFFF#000000##FFFFFF
##34236A1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#223443
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34236a;
/* rgb */ color: rgb(52, 35, 106);
/* oklch */ color: oklch(32.2% 0.118 289.0);
Tailwind
colors: {
  custom: {
    50: '#715f95',
    500: '#34236a',
    950: '#000000',
  },
}
SCSS
$custom: #34236a;
$custom-light: #715f95;
$custom-dark: #000000;
JSON
{
  "hex": "#34236a",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 254.366,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32153,
    "c": 0.11782,
    "h": 289
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#34236A
secondary
#8A9D4B
accent
#DA4EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #34236A

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

Preview Lab → · Contrast checker → · Palette generator →

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