#37168D#37168D

#37168D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.176 H 284.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#37168D
RGBrgb(55, 22, 141)
HSLhsl(257, 73%, 32%)
HSVhsv(257, 84%, 55%)
CMYKcmyk(61%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.24, 45.71, -59.04)
CIE-LCHlch(21.24, 74.67, 307.74°)
OKLaboklab(34.2% 0.0453 -0.1702)
OKLCHoklch(34.2% 0.176 284.9)
XYZxyz(6.6687, 3.3087, 25.4814)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37168D #6C8D16
analogous
#16308D #37168D #73168D
triadic
#37168D #8D3716 #168D37
tetradic
#37168D #8D1630 #6C8D16 #168D73
square
#37168D #8D1630 #6C8D16 #168D73
split-complementary
#37168D #8D7316 #308D16
monochromatic
#0E0523 #220E58 #37168D #4C1EC2 #6A3DE1

Accessibility & contrast

On white

12.64
#37168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#37168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37168D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37168D#FFFFFF#000000##FFFFFF
##37168D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.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: #37168d;
/* rgb */ color: rgb(55, 22, 141);
/* oklch */ color: oklch(34.2% 0.176 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a59b0',
    500: '#37168d',
    950: '#000000',
  },
}
SCSS
$custom: #37168d;
$custom-light: #7a59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#37168d",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 256.639,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.17608,
    "h": 284.9
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#37168D
secondary
#9CC13E
accent
#F038BD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37168D

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

Preview Lab → · Contrast checker → · Palette generator →

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