#37228D#37228D

#37228D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.165 H 283.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#37228D
RGBrgb(55, 34, 141)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(61%, 75.9%, 0%, 44.7%)
CIE-LABlab(23.27, 39.87, -55.70)
CIE-LCHlch(23.27, 68.50, 305.59°)
OKLaboklab(35.61% 0.0375 -0.1605)
OKLCHoklch(35.61% 0.165 283.1)
XYZxyz(6.9538, 3.8789, 25.5764)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37228D #788D22
analogous
#22428D #37228D #6D228D
triadic
#37228D #8D3722 #228D37
tetradic
#37228D #8D2242 #788D22 #228D6D
square
#37228D #8D2242 #788D22 #228D6D
split-complementary
#37228D #8D6D22 #428D22
monochromatic
#110A2A #24165C #37228D #4A2EBE #6D54D6

Accessibility & contrast

On white

11.83
#37228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#37228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37228D
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37228D#FFFFFF#000000##FFFFFF
##37228D1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #37228d;
/* rgb */ color: rgb(55, 34, 141);
/* oklch */ color: oklch(35.6% 0.165 283.1);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#37228d',
    950: '#000000',
  },
}
SCSS
$custom: #37228d;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#37228d",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 251.776,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35609,
    "c": 0.16484,
    "h": 283.1
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#37228D
secondary
#A5B951
accent
#E444C5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #37228D

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

Preview Lab → · Contrast checker → · Palette generator →

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