#34236D#34236D

#34236D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.122 H 288.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#34236D
RGBrgb(52, 35, 109)
HSLhsl(254, 51%, 28%)
HSVhsv(254, 68%, 43%)
CMYKcmyk(52.3%, 67.9%, 0%, 57.3%)
CIE-LABlab(20.19, 28.54, -40.44)
CIE-LCHlch(20.19, 49.49, 305.21°)
OKLaboklab(32.42% 0.0381 -0.1159)
OKLCHoklch(32.42% 0.122 288.2)
XYZxyz(4.7767, 3.0360, 14.7994)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34236D #5C6D23
analogous
#23376D #34236D #59236D
triadic
#34236D #6D3423 #236D34
tetradic
#34236D #6D2337 #5C6D23 #236D59
square
#34236D #6D2337 #5C6D23 #236D59
split-complementary
#34236D #6D5923 #376D23
monochromatic
#0B0717 #1E143F #34236D #4A329B #6347C4

Accessibility & contrast

On white

13.07
#34236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#34236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34236D
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34236D#FFFFFF#000000##FFFFFF
##34236D1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#203544
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #34236d;
/* rgb */ color: rgb(52, 35, 109);
/* oklch */ color: oklch(32.4% 0.122 288.2);
Tailwind
colors: {
  custom: {
    50: '#715f97',
    500: '#34236d',
    950: '#000000',
  },
}
SCSS
$custom: #34236d;
$custom-light: #715f97;
$custom-dark: #000000;
JSON
{
  "hex": "#34236d",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 253.784,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.122,
    "h": 288.2
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#34236D
secondary
#8DA04B
accent
#DB4DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #34236D

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

Preview Lab → · Contrast checker → · Palette generator →

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