#37198F#37198F

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

Color values

HEX#37198F
RGBrgb(55, 25, 143)
HSLhsl(255, 70%, 33%)
HSVhsv(255, 83%, 56%)
CMYKcmyk(61.5%, 82.5%, 0%, 43.9%)
CIE-LABlab(21.91, 44.97, -59.18)
CIE-LCHlch(21.91, 74.33, 307.23°)
OKLaboklab(34.72% 0.0429 -0.1706)
OKLCHoklch(34.72% 0.176 284.1)
XYZxyz(6.8796, 3.4902, 26.2924)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37198F #718F19
analogous
#19368F #37198F #72198F
triadic
#37198F #8F3719 #198F37
tetradic
#37198F #8F1936 #718F19 #198F72
square
#37198F #8F1936 #718F19 #198F72
split-complementary
#37198F #8F7219 #368F19
monochromatic
#0F0727 #23105B #37198F #4B22C3 #6B44DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##37198F#FFFFFF#000000##FFFFFF
##37198F1.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)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37198f;
/* rgb */ color: rgb(55, 25, 143);
/* oklch */ color: oklch(34.7% 0.176 284.1);
Tailwind
colors: {
  custom: {
    50: '#7a5bb1',
    500: '#37198f',
    950: '#000000',
  },
}
SCSS
$custom: #37198f;
$custom-light: #7a5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#37198f",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 255.254,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34723,
    "c": 0.17591,
    "h": 284.1
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#37198F
secondary
#A0BF44
accent
#ED3BC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37198F

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

Preview Lab → · Contrast checker → · Palette generator →

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