#34228A#34228A

#34228A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.162 H 282.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#34228A
RGBrgb(52, 34, 138)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 54%)
CMYKcmyk(62.3%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.68, 38.50, -54.80)
CIE-LCHlch(22.68, 66.97, 305.09°)
OKLaboklab(35.04% 0.0337 -0.158)
OKLCHoklch(35.04% 0.162 282)
XYZxyz(6.5742, 3.7086, 24.4092)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34228A #788A22
analogous
#22448A #34228A #68228A
triadic
#34228A #8A3422 #228A34
tetradic
#34228A #8A2244 #788A22 #228A68
square
#34228A #8A2244 #788A22 #228A68
split-complementary
#34228A #8A6822 #448A22
monochromatic
#0F0A28 #211659 #34228A #472EBB #6952D4

Accessibility & contrast

On white

12.06
#34228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#34228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34228A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34228A#FFFFFF#000000##FFFFFF
##34228A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34228a;
/* rgb */ color: rgb(52, 34, 138);
/* oklch */ color: oklch(35.0% 0.162 282.0);
Tailwind
colors: {
  custom: {
    50: '#775fad',
    500: '#34228a',
    950: '#000000',
  },
}
SCSS
$custom: #34228a;
$custom-light: #775fad;
$custom-dark: #000000;
JSON
{
  "hex": "#34228a",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 250.385,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35036,
    "c": 0.16155,
    "h": 282
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#34228A
secondary
#A6B850
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34228A

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

Preview Lab → · Contrast checker → · Palette generator →

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