#34215D#34215D

#34215D is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.102 H 294.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#34215D
RGBrgb(52, 33, 93)
HSLhsl(259, 48%, 25%)
HSVhsv(259, 65%, 36%)
CMYKcmyk(44.1%, 64.5%, 0%, 63.5%)
CIE-LABlab(18.40, 24.70, -32.84)
CIE-LCHlch(18.40, 41.09, 306.95°)
OKLaboklab(30.7% 0.0419 -0.0935)
OKLCHoklch(30.7% 0.103 294.1)
XYZxyz(3.9353, 2.6080, 10.6499)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34215D #4A5D21
analogous
#212C5D #34215D #52215D
triadic
#34215D #5D3421 #215D34
tetradic
#34215D #5D212C #4A5D21 #215D52
square
#34215D #5D212C #4A5D21 #215D52
split-complementary
#34215D #5D5221 #2C5D21
monochromatic
#0D0817 #1B1130 #34215D #4D318A #6741B7

Accessibility & contrast

On white

13.80
#34215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#34215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34215D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34215D#FFFFFF#000000##FFFFFF
##34215D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#022C5C
Tritanopia (blue-blind)
#292E3B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #34215d;
/* rgb */ color: rgb(52, 33, 93);
/* oklch */ color: oklch(30.7% 0.102 294.1);
Tailwind
colors: {
  custom: {
    50: '#6f5d8b',
    500: '#34215d',
    950: '#000000',
  },
}
SCSS
$custom: #34215d;
$custom-light: #6f5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#34215d",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 259,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30704,
    "c": 0.1025,
    "h": 294.1
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#34215D
secondary
#7A9149
accent
#D751AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #34215D

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

Preview Lab → · Contrast checker → · Palette generator →

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