#37158D#37158D

#37158D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.177 H 285.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#37158D
RGBrgb(55, 21, 141)
HSLhsl(257, 74%, 32%)
HSVhsv(257, 85%, 55%)
CMYKcmyk(61%, 85.1%, 0%, 44.7%)
CIE-LABlab(21.10, 46.12, -59.28)
CIE-LCHlch(21.10, 75.11, 307.89°)
OKLaboklab(34.1% 0.0458 -0.1708)
OKLCHoklch(34.1% 0.177 285)
XYZxyz(6.6500, 3.2712, 25.4751)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37158D #6B8D15
analogous
#152F8D #37158D #73158D
triadic
#37158D #8D3715 #158D37
tetradic
#37158D #8D152F #6B8D15 #158D73
square
#37158D #8D152F #6B8D15 #158D73
split-complementary
#37158D #8D7315 #2F8D15
monochromatic
#0D0522 #220D58 #37158D #4C1DC2 #6A3BE2

Accessibility & contrast

On white

12.69
#37158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#37158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37158D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37158D#FFFFFF#000000##FFFFFF
##37158D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37158d;
/* rgb */ color: rgb(55, 21, 141);
/* oklch */ color: oklch(34.1% 0.177 285.0);
Tailwind
colors: {
  custom: {
    50: '#7a59b0',
    500: '#37158d',
    950: '#000000',
  },
}
SCSS
$custom: #37158d;
$custom-light: #7a59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#37158d",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 257,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.17685,
    "h": 285
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#37158D
secondary
#9BC13D
accent
#F137BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37158D

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

Preview Lab → · Contrast checker → · Palette generator →

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