#34227C#34227C

#34227C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.144 H 284.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#34227C
RGBrgb(52, 34, 124)
HSLhsl(252, 57%, 31%)
HSVhsv(252, 73%, 49%)
CMYKcmyk(58.1%, 72.6%, 0%, 51.4%)
CIE-LABlab(21.32, 34.01, -48.22)
CIE-LCHlch(21.32, 59.01, 305.19°)
OKLaboklab(33.65% 0.0367 -0.1388)
OKLCHoklch(33.65% 0.144 284.8)
XYZxyz(5.6252, 3.3290, 19.4110)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34227C #6A7C22
analogous
#223D7C #34227C #61227C
triadic
#34227C #7C3422 #227C34
tetradic
#34227C #7C223D #6A7C22 #227C61
square
#34227C #7C223D #6A7C22 #227C61
split-complementary
#34227C #7C6122 #3D7C22
monochromatic
#0C081C #20154C #34227C #482FAC #654BCE

Accessibility & contrast

On white

12.61
#34227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#34227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34227C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34227C#FFFFFF#000000##FFFFFF
##34227C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#123A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34227c;
/* rgb */ color: rgb(52, 34, 124);
/* oklch */ color: oklch(33.6% 0.144 284.8);
Tailwind
colors: {
  custom: {
    50: '#745fa3',
    500: '#34227c',
    950: '#000000',
  },
}
SCSS
$custom: #34227c;
$custom-light: #745fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#34227c",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 252,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33648,
    "c": 0.14353,
    "h": 284.8
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#34227C
secondary
#9BAF4B
accent
#E048C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34227C

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

Preview Lab → · Contrast checker → · Palette generator →

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