#33227E#33227E

#33227E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.146 H 283.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#33227E
RGBrgb(51, 34, 126)
HSLhsl(251, 58%, 31%)
HSVhsv(251, 73%, 49%)
CMYKcmyk(59.5%, 73%, 0%, 50.6%)
CIE-LABlab(21.41, 34.49, -49.35)
CIE-LCHlch(21.41, 60.20, 304.95°)
OKLaboklab(33.75% 0.0348 -0.1421)
OKLCHoklch(33.75% 0.146 283.8)
XYZxyz(5.7020, 3.3539, 20.0815)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33227E #6D7E22
analogous
#223F7E #33227E #61227E
triadic
#33227E #7E3322 #227E33
tetradic
#33227E #7E223F #6D7E22 #227E61
square
#33227E #7E223F #6D7E22 #227E61
split-complementary
#33227E #7E6122 #3F7E22
monochromatic
#0C081E #1F154E #33227E #472FAE #644CCF

Accessibility & contrast

On white

12.57
#33227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#33227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33227E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33227E#FFFFFF#000000##FFFFFF
##33227E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#0A3B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33227e;
/* rgb */ color: rgb(51, 34, 126);
/* oklch */ color: oklch(33.7% 0.146 283.8);
Tailwind
colors: {
  custom: {
    50: '#745fa4',
    500: '#33227e',
    950: '#000000',
  },
}
SCSS
$custom: #33227e;
$custom-light: #745fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#33227e",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 251.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33748,
    "c": 0.14627,
    "h": 283.8
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#33227E
secondary
#9EB14B
accent
#E147C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33227E

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

Preview Lab → · Contrast checker → · Palette generator →

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