#34218E#34218E

#34218E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.168 H 281.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#34218E
RGBrgb(52, 33, 142)
HSLhsl(250, 62%, 34%)
HSVhsv(250, 77%, 56%)
CMYKcmyk(63.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(22.90, 40.32, -56.94)
CIE-LCHlch(22.90, 69.77, 305.31°)
OKLaboklab(35.31% 0.0334 -0.1642)
OKLCHoklch(35.31% 0.168 281.5)
XYZxyz(6.8410, 3.7703, 25.9532)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34218E #7B8E21
analogous
#21448E #34218E #6B218E
triadic
#34218E #8E3421 #218E34
tetradic
#34218E #8E2144 #7B8E21 #218E6B
square
#34218E #8E2144 #7B8E21 #218E6B
split-complementary
#34218E #8E6B21 #448E21
monochromatic
#100A2B #22155C #34218E #462DC0 #6A52D7

Accessibility & contrast

On white

11.97
#34218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#34218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34218E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34218E#FFFFFF#000000##FFFFFF
##34218E1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34218e;
/* rgb */ color: rgb(52, 33, 142);
/* oklch */ color: oklch(35.3% 0.168 281.5);
Tailwind
colors: {
  custom: {
    50: '#785fb0',
    500: '#34218e',
    950: '#000000',
  },
}
SCSS
$custom: #34218e;
$custom-light: #785fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#34218e",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 250.459,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3531,
    "c": 0.16761,
    "h": 281.5
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#34218E
secondary
#A8BA50
accent
#E542C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34218E

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

Preview Lab → · Contrast checker → · Palette generator →

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