#34236B#34236B

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

Color values

HEX#34236B
RGBrgb(52, 35, 107)
HSLhsl(254, 51%, 28%)
HSVhsv(254, 67%, 42%)
CMYKcmyk(51.4%, 67.3%, 0%, 58%)
CIE-LABlab(20.02, 27.89, -39.42)
CIE-LCHlch(20.02, 48.28, 305.28°)
OKLaboklab(32.24% 0.0383 -0.1129)
OKLCHoklch(32.24% 0.119 288.8)
XYZxyz(4.6703, 2.9935, 14.2388)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34236B #5A6B23
analogous
#23366B #34236B #58236B
triadic
#34236B #6B3423 #236B34
tetradic
#34236B #6B2336 #5A6B23 #236B58
square
#34236B #6B2336 #5A6B23 #236B58
split-complementary
#34236B #6B5823 #366B23
monochromatic
#0B0817 #1E143D #34236B #4A3299 #6346C2

Accessibility & contrast

On white

13.13
#34236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#34236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34236B
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34236B#FFFFFF#000000##FFFFFF
##34236B1.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)
#00326D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#213443
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34236b;
/* rgb */ color: rgb(52, 35, 107);
/* oklch */ color: oklch(32.2% 0.119 288.8);
Tailwind
colors: {
  custom: {
    50: '#715f96',
    500: '#34236b',
    950: '#000000',
  },
}
SCSS
$custom: #34236b;
$custom-light: #715f96;
$custom-dark: #000000;
JSON
{
  "hex": "#34236b",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 254.167,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3224,
    "c": 0.11922,
    "h": 288.8
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#34236B
secondary
#8B9E4B
accent
#DA4EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #34236B

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

Preview Lab → · Contrast checker → · Palette generator →

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