#34227F#34227F

#34227F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.147 H 284.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#34227F
RGBrgb(52, 34, 127)
HSLhsl(252, 58%, 32%)
HSVhsv(252, 73%, 50%)
CMYKcmyk(59.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.60, 34.97, -49.66)
CIE-LCHlch(21.60, 60.74, 305.16°)
OKLaboklab(33.94% 0.0361 -0.1429)
OKLCHoklch(33.94% 0.147 284.2)
XYZxyz(5.8178, 3.4061, 20.4254)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34227F #6D7F22
analogous
#223F7F #34227F #63227F
triadic
#34227F #7F3422 #227F34
tetradic
#34227F #7F223F #6D7F22 #227F63
square
#34227F #7F223F #6D7F22 #227F63
split-complementary
#34227F #7F6322 #3F7F22
monochromatic
#0C081E #20154F #34227F #482FAF #664CCF

Accessibility & contrast

On white

12.49
#34227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#34227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34227F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34227F#FFFFFF#000000##FFFFFF
##34227F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#0D3B4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #34227f;
/* rgb */ color: rgb(52, 34, 127);
/* oklch */ color: oklch(33.9% 0.147 284.2);
Tailwind
colors: {
  custom: {
    50: '#755fa5',
    500: '#34227f',
    950: '#000000',
  },
}
SCSS
$custom: #34227f;
$custom-light: #755fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#34227f",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 251.613,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33939,
    "c": 0.14744,
    "h": 284.2
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#34227F
secondary
#9EB24B
accent
#E147C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34227F

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

Preview Lab → · Contrast checker → · Palette generator →

#34227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva