#33227B#33227B

#33227B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.142 H 284.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#33227B
RGBrgb(51, 34, 123)
HSLhsl(251, 57%, 31%)
HSVhsv(251, 72%, 48%)
CMYKcmyk(58.5%, 72.4%, 0%, 51.8%)
CIE-LABlab(21.12, 33.51, -47.91)
CIE-LCHlch(21.12, 58.47, 304.97°)
OKLaboklab(33.46% 0.0354 -0.1378)
OKLCHoklch(33.46% 0.142 284.4)
XYZxyz(5.5113, 3.2776, 19.0773)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33227B #6A7B22
analogous
#223D7B #33227B #5F227B
triadic
#33227B #7B3322 #227B33
tetradic
#33227B #7B223D #6A7B22 #227B5F
square
#33227B #7B223D #6A7B22 #227B5F
split-complementary
#33227B #7B5F22 #3D7B22
monochromatic
#0B071B #1F154B #33227B #472FAB #634ACD

Accessibility & contrast

On white

12.68
#33227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33227B
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33227B#FFFFFF#000000##FFFFFF
##33227B1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#0F394C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33227b;
/* rgb */ color: rgb(51, 34, 123);
/* oklch */ color: oklch(33.5% 0.142 284.4);
Tailwind
colors: {
  custom: {
    50: '#735fa2',
    500: '#33227b',
    950: '#000000',
  },
}
SCSS
$custom: #33227b;
$custom-light: #735fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#33227b",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 251.461,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.14233,
    "h": 284.4
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#33227B
secondary
#9BAE4B
accent
#E048C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33227B

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

Preview Lab → · Contrast checker → · Palette generator →

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