#37227D#37227D

#37227D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.145 H 286.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#37227D
RGBrgb(55, 34, 125)
HSLhsl(254, 57%, 31%)
HSVhsv(254, 73%, 49%)
CMYKcmyk(56%, 72.8%, 0%, 51%)
CIE-LABlab(21.71, 34.83, -48.20)
CIE-LCHlch(21.71, 59.47, 305.86°)
OKLaboklab(34.03% 0.0411 -0.1386)
OKLCHoklch(34.03% 0.145 286.5)
XYZxyz(5.8481, 3.4366, 19.7532)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37227D #687D22
analogous
#223A7D #37227D #64227D
triadic
#37227D #7D3722 #227D37
tetradic
#37227D #7D223A #687D22 #227D64
square
#37227D #7D223A #687D22 #227D64
split-complementary
#37227D #7D6422 #3A7D22
monochromatic
#0D081D #22154D #37227D #4C2FAD #694BCE

Accessibility & contrast

On white

12.45
#37227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#37227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37227D
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37227D#FFFFFF#000000##FFFFFF
##37227D1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#1A3A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37227d;
/* rgb */ color: rgb(55, 34, 125);
/* oklch */ color: oklch(34.0% 0.145 286.5);
Tailwind
colors: {
  custom: {
    50: '#765fa3',
    500: '#37227d',
    950: '#000000',
  },
}
SCSS
$custom: #37227d;
$custom-light: #765fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#37227d",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 253.846,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34034,
    "c": 0.14453,
    "h": 286.5
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#37227D
secondary
#98B04B
accent
#E047BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #37227D

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

Preview Lab → · Contrast checker → · Palette generator →

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