#34226E#34226E

#34226E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.125 H 288.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#34226E
RGBrgb(52, 34, 110)
HSLhsl(254, 53%, 28%)
HSVhsv(254, 69%, 43%)
CMYKcmyk(52.7%, 69.1%, 0%, 56.9%)
CIE-LABlab(20.04, 29.48, -41.32)
CIE-LCHlch(20.04, 50.76, 305.51°)
OKLaboklab(32.34% 0.0391 -0.1185)
OKLCHoklch(32.34% 0.125 288.3)
XYZxyz(4.8019, 2.9997, 15.0748)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34226E #5C6E22
analogous
#22366E #34226E #5A226E
triadic
#34226E #6E3422 #226E34
tetradic
#34226E #6E2236 #5C6E22 #226E5A
square
#34226E #6E2236 #5C6E22 #226E5A
split-complementary
#34226E #6E5A22 #366E22
monochromatic
#0B0717 #1E143F #34226E #4A309D #6345C5

Accessibility & contrast

On white

13.13
#34226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#34226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34226E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34226E#FFFFFF#000000##FFFFFF
##34226E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#1F3544
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34226e;
/* rgb */ color: rgb(52, 34, 110);
/* oklch */ color: oklch(32.3% 0.125 288.3);
Tailwind
colors: {
  custom: {
    50: '#725e98',
    500: '#34226e',
    950: '#000000',
  },
}
SCSS
$custom: #34226e;
$custom-light: #725e98;
$custom-dark: #000000;
JSON
{
  "hex": "#34226e",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 254.211,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32339,
    "c": 0.12477,
    "h": 288.3
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#34226E
secondary
#8DA14A
accent
#DC4CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #34226E

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

Preview Lab → · Contrast checker → · Palette generator →

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