#34236F#34236F

#34236F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.6% C 0.125 H 287.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#34236F
RGBrgb(52, 35, 111)
HSLhsl(253, 52%, 29%)
HSVhsv(253, 68%, 44%)
CMYKcmyk(53.2%, 68.5%, 0%, 56.5%)
CIE-LABlab(20.36, 29.18, -41.45)
CIE-LCHlch(20.36, 50.70, 305.15°)
OKLaboklab(32.6% 0.0379 -0.1189)
OKLCHoklch(32.6% 0.125 287.7)
XYZxyz(4.8856, 3.0796, 15.3728)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34236F #5E6F23
analogous
#23386F #34236F #5A236F
triadic
#34236F #6F3423 #236F34
tetradic
#34236F #6F2338 #5E6F23 #236F5A
square
#34236F #6F2338 #5E6F23 #236F5A
split-complementary
#34236F #6F5A23 #386F23
monochromatic
#0B0717 #1E1440 #34236F #4A329E #6347C5

Accessibility & contrast

On white

13.00
#34236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#34236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34236F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34236F#FFFFFF#000000##FFFFFF
##34236F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#1F3645
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #34236f;
/* rgb */ color: rgb(52, 35, 111);
/* oklch */ color: oklch(32.6% 0.125 287.7);
Tailwind
colors: {
  custom: {
    50: '#725f99',
    500: '#34236f',
    950: '#000000',
  },
}
SCSS
$custom: #34236f;
$custom-light: #725f99;
$custom-dark: #000000;
JSON
{
  "hex": "#34236f",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 253.421,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.12476,
    "h": 287.7
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#34236F
secondary
#8FA24C
accent
#DB4CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #34236F

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

Preview Lab → · Contrast checker → · Palette generator →

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