#34226A#34226A

#34226A is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.0% C 0.119 H 289.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#34226A
RGBrgb(52, 34, 106)
HSLhsl(255, 51%, 27%)
HSVhsv(255, 68%, 42%)
CMYKcmyk(50.9%, 67.9%, 0%, 58.4%)
CIE-LABlab(19.70, 28.20, -39.29)
CIE-LCHlch(19.70, 48.36, 305.67°)
OKLaboklab(31.98% 0.0396 -0.1125)
OKLCHoklch(31.98% 0.119 289.4)
XYZxyz(4.5890, 2.9145, 13.9536)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34226A #586A22
analogous
#22346A #34226A #58226A
triadic
#34226A #6A3422 #226A34
tetradic
#34226A #6A2234 #586A22 #226A58
square
#34226A #6A2234 #586A22 #226A58
split-complementary
#34226A #6A5822 #346A22
monochromatic
#0B0717 #1D133C #34226A #4B3198 #6344C3

Accessibility & contrast

On white

13.27
#34226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#34226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34226A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34226A#FFFFFF#000000##FFFFFF
##34226A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34226a;
/* rgb */ color: rgb(52, 34, 106);
/* oklch */ color: oklch(32.0% 0.119 289.4);
Tailwind
colors: {
  custom: {
    50: '#715e95',
    500: '#34226a',
    950: '#000000',
  },
}
SCSS
$custom: #34226a;
$custom-light: #715e95;
$custom-dark: #000000;
JSON
{
  "hex": "#34226a",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 255,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31982,
    "c": 0.11927,
    "h": 289.4
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#34226A
secondary
#899E4A
accent
#DB4DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #34226A

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

Preview Lab → · Contrast checker → · Palette generator →

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