#37148A#37148A

#37148A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.7% C 0.174 H 285.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#37148A
RGBrgb(55, 20, 138)
HSLhsl(258, 75%, 31%)
HSVhsv(258, 86%, 54%)
CMYKcmyk(60.1%, 85.5%, 0%, 45.9%)
CIE-LABlab(20.62, 45.68, -58.19)
CIE-LCHlch(20.62, 73.97, 308.13°)
OKLaboklab(33.67% 0.0475 -0.1676)
OKLCHoklch(33.67% 0.174 285.8)
XYZxyz(6.4118, 3.1471, 24.3094)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37148A #678A14
analogous
#142C8A #37148A #72148A
triadic
#37148A #8A3714 #148A37
tetradic
#37148A #8A142C #678A14 #148A72
square
#37148A #8A142C #678A14 #148A72
split-complementary
#37148A #8A7214 #2C8A14
monochromatic
#0C051F #220C55 #37148A #4C1CBF #6936E2

Accessibility & contrast

On white

12.89
#37148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#37148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37148A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37148A#FFFFFF#000000##FFFFFF
##37148A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#073951
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #37148a;
/* rgb */ color: rgb(55, 20, 138);
/* oklch */ color: oklch(33.7% 0.174 285.8);
Tailwind
colors: {
  custom: {
    50: '#7958ad',
    500: '#37148a',
    950: '#000000',
  },
}
SCSS
$custom: #37148a;
$custom-light: #7958ad;
$custom-dark: #000000;
JSON
{
  "hex": "#37148a",
  "rgb": {
    "r": 55,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 257.797,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.17422,
    "h": 285.8
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#37148A
secondary
#97BE3C
accent
#F136BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #37148A

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

Preview Lab → · Contrast checker → · Palette generator →

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