#37227F#37227F

#37227F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.147 H 286.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#37227F
RGBrgb(55, 34, 127)
HSLhsl(254, 58%, 32%)
HSVhsv(254, 73%, 50%)
CMYKcmyk(56.7%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.90, 35.46, -49.16)
CIE-LCHlch(21.90, 60.61, 305.81°)
OKLaboklab(34.23% 0.0407 -0.1414)
OKLCHoklch(34.23% 0.147 286.1)
XYZxyz(5.9772, 3.4883, 20.4329)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37227F #6A7F22
analogous
#223C7F #37227F #66227F
triadic
#37227F #7F3722 #227F37
tetradic
#37227F #7F223C #6A7F22 #227F66
square
#37227F #7F223C #6A7F22 #227F66
split-complementary
#37227F #7F6622 #3C7F22
monochromatic
#0D081E #22154F #37227F #4C2FAF #6A4CCF

Accessibility & contrast

On white

12.37
#37227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#37227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37227F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37227F#FFFFFF#000000##FFFFFF
##37227F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#173B4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37227f;
/* rgb */ color: rgb(55, 34, 127);
/* oklch */ color: oklch(34.2% 0.147 286.1);
Tailwind
colors: {
  custom: {
    50: '#765fa5',
    500: '#37227f',
    950: '#000000',
  },
}
SCSS
$custom: #37227f;
$custom-light: #765fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#37227f",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 253.548,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.14711,
    "h": 286.1
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#37227F
secondary
#9AB24B
accent
#E147BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #37227F

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

Preview Lab → · Contrast checker → · Palette generator →

#37227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva