#371F73#371F73

#371F73 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.135 H 289.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#371F73
RGBrgb(55, 31, 115)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 73%, 45%)
CMYKcmyk(52.2%, 73%, 0%, 54.9%)
CIE-LABlab(20.16, 33.44, -44.34)
CIE-LCHlch(20.16, 55.54, 307.02°)
OKLaboklab(32.64% 0.046 -0.1272)
OKLCHoklch(32.64% 0.135 289.9)
XYZxyz(5.1592, 3.0298, 16.5293)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F73 #5B731F
analogous
#1F3173 #371F73 #611F73
triadic
#371F73 #73371F #1F7337
tetradic
#371F73 #731F31 #5B731F #1F7361
square
#371F73 #731F31 #5B731F #1F7361
split-complementary
#371F73 #73611F #31731F
monochromatic
#0C0618 #201243 #371F73 #4E2CA3 #6841CC

Accessibility & contrast

On white

13.08
#371F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F73
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F73#FFFFFF#000000##FFFFFF
##371F731.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#223546
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371f73;
/* rgb */ color: rgb(55, 31, 115);
/* oklch */ color: oklch(32.6% 0.135 289.9);
Tailwind
colors: {
  custom: {
    50: '#745d9c',
    500: '#371f73',
    950: '#000000',
  },
}
SCSS
$custom: #371f73;
$custom-light: #745d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#371f73",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 257.143,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32642,
    "c": 0.13531,
    "h": 289.9
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#371F73
secondary
#8BA747
accent
#E147B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F73

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

Preview Lab → · Contrast checker → · Palette generator →

#371F73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva