#371D83#371D83

#371D83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.158 H 286.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#371D83
RGBrgb(55, 29, 131)
HSLhsl(255, 64%, 31%)
HSVhsv(255, 78%, 51%)
CMYKcmyk(58%, 77.9%, 0%, 48.6%)
CIE-LABlab(21.32, 39.45, -52.64)
CIE-LCHlch(21.32, 65.78, 306.85°)
OKLaboklab(33.93% 0.0439 -0.1515)
OKLCHoklch(33.93% 0.158 286.2)
XYZxyz(6.1104, 3.3293, 21.7890)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D83 #69831D
analogous
#1D3683 #371D83 #6A1D83
triadic
#371D83 #83371D #1D8337
tetradic
#371D83 #831D36 #69831D #1D836A
square
#371D83 #831D36 #69831D #1D836A
split-complementary
#371D83 #836A1D #36831D
monochromatic
#0D071F #221251 #371D83 #4C28B5 #6A45D6

Accessibility & contrast

On white

12.61
#371D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D83
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D83#FFFFFF#000000##FFFFFF
##371D831.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#133A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371d83;
/* rgb */ color: rgb(55, 29, 131);
/* oklch */ color: oklch(33.9% 0.158 286.2);
Tailwind
colors: {
  custom: {
    50: '#775ca8',
    500: '#371d83',
    950: '#000000',
  },
}
SCSS
$custom: #371d83;
$custom-light: #775ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#371d83",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 255.294,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.15778,
    "h": 286.2
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#371D83
secondary
#99B646
accent
#E741BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D83

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

Preview Lab → · Contrast checker → · Palette generator →

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