#371F7A#371F7A

#371F7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.144 H 288.0°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#371F7A
RGBrgb(55, 31, 122)
HSLhsl(256, 59%, 30%)
HSVhsv(256, 75%, 48%)
CMYKcmyk(54.9%, 74.6%, 0%, 52.2%)
CIE-LABlab(20.82, 35.61, -47.76)
CIE-LCHlch(20.82, 59.57, 306.71°)
OKLaboklab(33.31% 0.0445 -0.1373)
OKLCHoklch(33.31% 0.144 288)
XYZxyz(5.5774, 3.1971, 18.7318)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F7A #627A1F
analogous
#1F357A #371F7A #641F7A
triadic
#371F7A #7A371F #1F7A37
tetradic
#371F7A #7A1F35 #627A1F #1F7A64
square
#371F7A #7A1F35 #627A1F #1F7A64
split-complementary
#371F7A #7A641F #357A1F
monochromatic
#0B0618 #211349 #371F7A #4D2BAB #6944CF

Accessibility & contrast

On white

12.81
#371F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F7A
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F7A#FFFFFF#000000##FFFFFF
##371F7A1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#1D374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371f7a;
/* rgb */ color: rgb(55, 31, 122);
/* oklch */ color: oklch(33.3% 0.144 288.0);
Tailwind
colors: {
  custom: {
    50: '#765da1',
    500: '#371f7a',
    950: '#000000',
  },
}
SCSS
$custom: #371f7a;
$custom-light: #765da1;
$custom-dark: #000000;
JSON
{
  "hex": "#371f7a",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 255.824,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.1443,
    "h": 288
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#371F7A
secondary
#92AD47
accent
#E345B9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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