#34218A#34218A

#34218A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.163 H 282.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#34218A
RGBrgb(52, 33, 138)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 54%)
CMYKcmyk(62.3%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.49, 39.06, -55.12)
CIE-LCHlch(22.49, 67.56, 305.32°)
OKLaboklab(34.9% 0.0344 -0.1589)
OKLCHoklch(34.9% 0.163 282.2)
XYZxyz(6.5460, 3.6523, 24.3998)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34218A #778A21
analogous
#21428A #34218A #68218A
triadic
#34218A #8A3421 #218A34
tetradic
#34218A #8A2142 #778A21 #218A68
square
#34218A #8A2142 #778A21 #218A68
split-complementary
#34218A #8A6821 #428A21
monochromatic
#0F0927 #211559 #34218A #472DBB #6850D5

Accessibility & contrast

On white

12.13
#34218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#34218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34218A
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34218A#FFFFFF#000000##FFFFFF
##34218A1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34218a;
/* rgb */ color: rgb(52, 33, 138);
/* oklch */ color: oklch(34.9% 0.163 282.2);
Tailwind
colors: {
  custom: {
    50: '#775fad',
    500: '#34218a',
    950: '#000000',
  },
}
SCSS
$custom: #34218a;
$custom-light: #775fad;
$custom-dark: #000000;
JSON
{
  "hex": "#34218a",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 250.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34897,
    "c": 0.16262,
    "h": 282.2
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#34218A
secondary
#A5B94E
accent
#E543C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34218A

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

Preview Lab → · Contrast checker → · Palette generator →

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