#33227D#33227D

#33227D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.145 H 284.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#33227D
RGBrgb(51, 34, 125)
HSLhsl(251, 57%, 31%)
HSVhsv(251, 73%, 49%)
CMYKcmyk(59.2%, 72.8%, 0%, 51%)
CIE-LABlab(21.31, 34.16, -48.87)
CIE-LCHlch(21.31, 59.63, 304.96°)
OKLaboklab(33.65% 0.035 -0.1407)
OKLCHoklch(33.65% 0.145 284)
XYZxyz(5.6378, 3.3282, 19.7434)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33227D #6C7D22
analogous
#223E7D #33227D #60227D
triadic
#33227D #7D3322 #227D33
tetradic
#33227D #7D223E #6C7D22 #227D60
square
#33227D #7D223E #6C7D22 #227D60
split-complementary
#33227D #7D6022 #3E7D22
monochromatic
#0C081D #1F154D #33227D #472FAD #644BCE

Accessibility & contrast

On white

12.61
#33227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33227D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33227D#FFFFFF#000000##FFFFFF
##33227D1.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)
#003680
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#0C3A4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33227d;
/* rgb */ color: rgb(51, 34, 125);
/* oklch */ color: oklch(33.7% 0.145 284.0);
Tailwind
colors: {
  custom: {
    50: '#745fa4',
    500: '#33227d',
    950: '#000000',
  },
}
SCSS
$custom: #33227d;
$custom-light: #745fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#33227d",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 251.209,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33651,
    "c": 0.14496,
    "h": 284
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#33227D
secondary
#9DB04B
accent
#E047C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33227D

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

Preview Lab → · Contrast checker → · Palette generator →

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