#37218A#37218A

#37218A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.162 H 283.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#37218A
RGBrgb(55, 33, 138)
HSLhsl(253, 61%, 34%)
HSVhsv(253, 76%, 54%)
CMYKcmyk(60.1%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.77, 39.47, -54.64)
CIE-LCHlch(22.77, 67.41, 305.84°)
OKLaboklab(35.17% 0.039 -0.1574)
OKLCHoklch(35.17% 0.162 283.9)
XYZxyz(6.7054, 3.7345, 24.4073)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37218A #748A21
analogous
#213F8A #37218A #6B218A
triadic
#37218A #8A3721 #218A37
tetradic
#37218A #8A213F #748A21 #218A6B
square
#37218A #8A213F #748A21 #218A6B
split-complementary
#37218A #8A6B21 #3F8A21
monochromatic
#100927 #231559 #37218A #4B2DBB #6C50D5

Accessibility & contrast

On white

12.02
#37218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#37218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37218A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37218A#FFFFFF#000000##FFFFFF
##37218A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#043E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #37218a;
/* rgb */ color: rgb(55, 33, 138);
/* oklch */ color: oklch(35.2% 0.162 283.9);
Tailwind
colors: {
  custom: {
    50: '#785fad',
    500: '#37218a',
    950: '#000000',
  },
}
SCSS
$custom: #37218a;
$custom-light: #785fad;
$custom-dark: #000000;
JSON
{
  "hex": "#37218a",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 252.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3517,
    "c": 0.16218,
    "h": 283.9
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#37218A
secondary
#A2B94E
accent
#E543C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37218A

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

Preview Lab → · Contrast checker → · Palette generator →

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