#37218C#37218C

#37218C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.165 H 283.5°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#37218C
RGBrgb(55, 33, 140)
HSLhsl(252, 62%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(60.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.97, 40.10, -55.56)
CIE-LCHlch(22.97, 68.52, 305.82°)
OKLaboklab(35.37% 0.0385 -0.1601)
OKLCHoklch(35.37% 0.165 283.5)
XYZxyz(6.8516, 3.7929, 25.1769)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37218C #768C21
analogous
#21418C #37218C #6D218C
triadic
#37218C #8C3721 #218C37
tetradic
#37218C #8C2141 #768C21 #218C6D
square
#37218C #8C2141 #768C21 #218C6D
split-complementary
#37218C #8C6D21 #418C21
monochromatic
#100A29 #24155A #37218C #4A2DBE #6D51D6

Accessibility & contrast

On white

11.94
#37218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#37218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37218C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37218C#FFFFFF#000000##FFFFFF
##37218C1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #37218c;
/* rgb */ color: rgb(55, 33, 140);
/* oklch */ color: oklch(35.4% 0.165 283.5);
Tailwind
colors: {
  custom: {
    50: '#795faf',
    500: '#37218c',
    950: '#000000',
  },
}
SCSS
$custom: #37218c;
$custom-light: #795faf;
$custom-dark: #000000;
JSON
{
  "hex": "#37218c",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 252.336,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35372,
    "c": 0.16466,
    "h": 283.5
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#37218C
secondary
#A4B94F
accent
#E543C4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37218C

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

Preview Lab → · Contrast checker → · Palette generator →

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