#37228C#37228C

#37228C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.164 H 283.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#37228C
RGBrgb(55, 34, 140)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(60.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(23.17, 39.55, -55.24)
CIE-LCHlch(23.17, 67.94, 305.60°)
OKLaboklab(35.51% 0.0377 -0.1592)
OKLCHoklch(35.51% 0.164 283.3)
XYZxyz(6.8797, 3.8493, 25.1863)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37228C #778C22
analogous
#22428C #37228C #6C228C
triadic
#37228C #8C3722 #228C37
tetradic
#37228C #8C2242 #778C22 #228C6C
square
#37228C #8C2242 #778C22 #228C6C
split-complementary
#37228C #8C6C22 #428C22
monochromatic
#100A2A #24165B #37228C #4A2EBD #6D53D5

Accessibility & contrast

On white

11.86
#37228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#37228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37228C
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37228C#FFFFFF#000000##FFFFFF
##37228C1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #37228c;
/* rgb */ color: rgb(55, 34, 140);
/* oklch */ color: oklch(35.5% 0.164 283.3);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#37228c',
    950: '#000000',
  },
}
SCSS
$custom: #37228c;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#37228c",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 251.887,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.1636,
    "h": 283.3
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#37228C
secondary
#A4B951
accent
#E444C4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37228C

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

Preview Lab → · Contrast checker → · Palette generator →

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