#37187E#37187E

#37187E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 288.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#37187E
RGBrgb(55, 24, 126)
HSLhsl(258, 68%, 29%)
HSVhsv(258, 81%, 49%)
CMYKcmyk(56.3%, 81%, 0%, 50.6%)
CIE-LABlab(19.93, 40.46, -51.76)
CIE-LCHlch(19.93, 65.70, 308.02°)
OKLaboklab(32.81% 0.0492 -0.1489)
OKLCHoklch(32.81% 0.157 288.3)
XYZxyz(5.6670, 2.9716, 20.0096)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37187E #5F7E18
analogous
#182C7E #37187E #6A187E
triadic
#37187E #7E3718 #187E37
tetradic
#37187E #7E182C #5F7E18 #187E6A
square
#37187E #7E182C #5F7E18 #187E6A
split-complementary
#37187E #7E6A18 #2C7E18
monochromatic
#0B051A #210E4B #37187E #4D22B1 #6937D9

Accessibility & contrast

On white

13.17
#37187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#37187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37187E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37187E#FFFFFF#000000##FFFFFF
##37187E1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#19364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #37187e;
/* rgb */ color: rgb(55, 24, 126);
/* oklch */ color: oklch(32.8% 0.157 288.3);
Tailwind
colors: {
  custom: {
    50: '#7759a4',
    500: '#37187e',
    950: '#000000',
  },
}
SCSS
$custom: #37187e;
$custom-light: #7759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#37187e",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 258.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32806,
    "c": 0.15683,
    "h": 288.3
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#37187E
secondary
#8FB23F
accent
#EB3DB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #37187E

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

Preview Lab → · Contrast checker → · Palette generator →

#37187E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva