#34256A#34256A

#34256A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.5% C 0.115 H 288.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#34256A
RGBrgb(52, 37, 106)
HSLhsl(253, 48%, 28%)
HSVhsv(253, 65%, 42%)
CMYKcmyk(50.9%, 65.1%, 0%, 58.4%)
CIE-LABlab(20.41, 26.28, -38.12)
CIE-LCHlch(20.41, 46.30, 304.58°)
OKLaboklab(32.5% 0.0361 -0.1091)
OKLCHoklch(32.5% 0.115 288.3)
XYZxyz(4.6785, 3.0936, 13.9835)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34256A #5B6A25
analogous
#25396A #34256A #56256A
triadic
#34256A #6A3425 #256A34
tetradic
#34256A #6A2539 #5B6A25 #256A56
square
#34256A #6A2539 #5B6A25 #256A56
split-complementary
#34256A #6A5625 #396A25
monochromatic
#0B0817 #1E153D #34256A #4A3597 #634AC0

Accessibility & contrast

On white

12.97
#34256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#34256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34256A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34256A#FFFFFF#000000##FFFFFF
##34256A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#223543
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #34256a;
/* rgb */ color: rgb(52, 37, 106);
/* oklch */ color: oklch(32.5% 0.115 288.3);
Tailwind
colors: {
  custom: {
    50: '#716095',
    500: '#34256a',
    950: '#000000',
  },
}
SCSS
$custom: #34256a;
$custom-light: #716095;
$custom-dark: #000000;
JSON
{
  "hex": "#34256a",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 253.043,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.11488,
    "h": 288.3
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#34256A
secondary
#8C9D4E
accent
#D850BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #34256A

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

Preview Lab → · Contrast checker → · Palette generator →

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