#37188A#37188A

#37188A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.171 H 285.3°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#37188A
RGBrgb(55, 24, 138)
HSLhsl(256, 70%, 32%)
HSVhsv(256, 83%, 54%)
CMYKcmyk(60.1%, 82.6%, 0%, 45.9%)
CIE-LABlab(21.21, 43.97, -57.22)
CIE-LCHlch(21.21, 72.16, 307.54°)
OKLaboklab(34.08% 0.0452 -0.1649)
OKLCHoklch(34.08% 0.171 285.3)
XYZxyz(6.4882, 3.3001, 24.3349)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37188A #6B8A18
analogous
#18328A #37188A #70188A
triadic
#37188A #8A3718 #188A37
tetradic
#37188A #8A1832 #6B8A18 #188A70
square
#37188A #8A1832 #6B8A18 #188A70
split-complementary
#37188A #8A7018 #328A18
monochromatic
#0D0622 #220F56 #37188A #4C21BE #6A3FDE

Accessibility & contrast

On white

12.65
#37188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#37188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37188A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37188A#FFFFFF#000000##FFFFFF
##37188A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#063A52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37188a;
/* rgb */ color: rgb(55, 24, 138);
/* oklch */ color: oklch(34.1% 0.171 285.3);
Tailwind
colors: {
  custom: {
    50: '#795aad',
    500: '#37188a',
    950: '#000000',
  },
}
SCSS
$custom: #37188a;
$custom-light: #795aad;
$custom-dark: #000000;
JSON
{
  "hex": "#37188a",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 256.316,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34076,
    "c": 0.17094,
    "h": 285.3
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#37188A
secondary
#9BBD40
accent
#ED3BBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #37188A

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

Preview Lab → · Contrast checker → · Palette generator →

#37188A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva