#34218C#34218C

#34218C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 281.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#34218C
RGBrgb(52, 33, 140)
HSLhsl(251, 62%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(62.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.69, 39.69, -56.04)
CIE-LCHlch(22.69, 68.67, 305.31°)
OKLaboklab(35.1% 0.0339 -0.1616)
OKLCHoklch(35.1% 0.165 281.8)
XYZxyz(6.6922, 3.7107, 25.1695)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34218C #798C21
analogous
#21448C #34218C #6A218C
triadic
#34218C #8C3421 #218C34
tetradic
#34218C #8C2144 #798C21 #218C6A
square
#34218C #8C2144 #798C21 #218C6A
split-complementary
#34218C #8C6A21 #448C21
monochromatic
#0F0A29 #22155A #34218C #462DBE #6951D6

Accessibility & contrast

On white

12.05
#34218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#34218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34218C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34218C#FFFFFF#000000##FFFFFF
##34218C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34218c;
/* rgb */ color: rgb(52, 33, 140);
/* oklch */ color: oklch(35.1% 0.165 281.8);
Tailwind
colors: {
  custom: {
    50: '#775faf',
    500: '#34218c',
    950: '#000000',
  },
}
SCSS
$custom: #34218c;
$custom-light: #775faf;
$custom-dark: #000000;
JSON
{
  "hex": "#34218c",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 250.654,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35103,
    "c": 0.16512,
    "h": 281.8
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#34218C
secondary
#A7B94F
accent
#E543C8
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34218C

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

Preview Lab → · Contrast checker → · Palette generator →

#34218C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva