#371B83#371B83

#371B83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.160 H 286.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#371B83
RGBrgb(55, 27, 131)
HSLhsl(256, 66%, 31%)
HSVhsv(256, 79%, 51%)
CMYKcmyk(58%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.96, 40.47, -53.23)
CIE-LCHlch(20.96, 66.87, 307.25°)
OKLaboklab(33.68% 0.0454 -0.1533)
OKLCHoklch(33.68% 0.16 286.5)
XYZxyz(6.0630, 3.2344, 21.7732)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B83 #67831B
analogous
#1B3383 #371B83 #6B1B83
triadic
#371B83 #83371B #1B8337
tetradic
#371B83 #831B33 #67831B #1B836B
square
#371B83 #831B33 #67831B #1B836B
split-complementary
#371B83 #836B1B #33831B
monochromatic
#0C061E #221150 #371B83 #4C25B6 #6941D8

Accessibility & contrast

On white

12.75
#371B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B83
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B83#FFFFFF#000000##FFFFFF
##371B831.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#13394E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371b83;
/* rgb */ color: rgb(55, 27, 131);
/* oklch */ color: oklch(33.7% 0.160 286.5);
Tailwind
colors: {
  custom: {
    50: '#785ba8',
    500: '#371b83',
    950: '#000000',
  },
}
SCSS
$custom: #371b83;
$custom-light: #785ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#371b83",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 256.154,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33681,
    "c": 0.15985,
    "h": 286.5
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#371B83
secondary
#97B643
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B83

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

Preview Lab → · Contrast checker → · Palette generator →

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