#37168F#37168F

#37168F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 284.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#37168F
RGBrgb(55, 22, 143)
HSLhsl(256, 73%, 32%)
HSVhsv(256, 85%, 56%)
CMYKcmyk(61.5%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.46, 46.28, -59.92)
CIE-LCHlch(21.46, 75.71, 307.68°)
OKLaboklab(34.42% 0.0445 -0.1727)
OKLCHoklch(34.42% 0.178 284.5)
XYZxyz(6.8189, 3.3688, 26.2722)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37168F #6E8F16
analogous
#16318F #37168F #74168F
triadic
#37168F #8F3716 #168F37
tetradic
#37168F #8F1631 #6E8F16 #168F74
square
#37168F #8F1631 #6E8F16 #168F74
split-complementary
#37168F #8F7416 #318F16
monochromatic
#0E0625 #230E5A #37168F #4B1EC4 #6B3EE1

Accessibility & contrast

On white

12.55
#37168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#37168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37168F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37168F#FFFFFF#000000##FFFFFF
##37168F1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37168f;
/* rgb */ color: rgb(55, 22, 143);
/* oklch */ color: oklch(34.4% 0.178 284.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ab1',
    500: '#37168f',
    950: '#000000',
  },
}
SCSS
$custom: #37168f;
$custom-light: #7a5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#37168f",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 256.364,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.17836,
    "h": 284.5
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#37168F
secondary
#9EC13F
accent
#F038BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37168F

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

Preview Lab → · Contrast checker → · Palette generator →

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