#33237A#33237A

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

Color values

HEX#33237A
RGBrgb(51, 35, 122)
HSLhsl(251, 55%, 31%)
HSVhsv(251, 71%, 48%)
CMYKcmyk(58.2%, 71.3%, 0%, 52.2%)
CIE-LABlab(21.25, 32.59, -47.07)
CIE-LCHlch(21.25, 57.25, 304.70°)
OKLaboklab(33.52% 0.0347 -0.1354)
OKLCHoklch(33.52% 0.14 284.4)
XYZxyz(5.4781, 3.3107, 18.7589)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33237A #6A7A23
analogous
#233F7A #33237A #5E237A
triadic
#33237A #7A3323 #237A33
tetradic
#33237A #7A233F #6A7A23 #237A5E
square
#33237A #7A233F #6A7A23 #237A5E
split-complementary
#33237A #7A5E23 #3F7A23
monochromatic
#0B081B #1F154A #33237A #4731AA #634CCC

Accessibility & contrast

On white

12.63
#33237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33237A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33237A#FFFFFF#000000##FFFFFF
##33237A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#113A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33237a;
/* rgb */ color: rgb(51, 35, 122);
/* oklch */ color: oklch(33.5% 0.140 284.4);
Tailwind
colors: {
  custom: {
    50: '#735fa1',
    500: '#33237a',
    950: '#000000',
  },
}
SCSS
$custom: #33237a;
$custom-light: #735fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#33237a",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 251.034,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33517,
    "c": 0.13976,
    "h": 284.4
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#33237A
secondary
#9BAD4C
accent
#DF49C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #33237A

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

Preview Lab → · Contrast checker → · Palette generator →

#33237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva