#371B7C#371B7C

#371B7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.151 H 288.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#371B7C
RGBrgb(55, 27, 124)
HSLhsl(257, 64%, 30%)
HSVhsv(257, 78%, 49%)
CMYKcmyk(55.6%, 78.2%, 0%, 51.4%)
CIE-LABlab(20.25, 38.37, -49.97)
CIE-LCHlch(20.25, 63.00, 307.53°)
OKLaboklab(32.97% 0.0475 -0.1437)
OKLCHoklch(32.97% 0.151 288.3)
XYZxyz(5.6045, 3.0510, 19.3585)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B7C #607C1B
analogous
#1B2F7C #371B7C #681B7C
triadic
#371B7C #7C371B #1B7C37
tetradic
#371B7C #7C1B2F #607C1B #1B7C68
square
#371B7C #7C1B2F #607C1B #1B7C68
split-complementary
#371B7C #7C681B #2F7C1B
monochromatic
#0B0519 #21104A #371B7C #4D26AE #693DD5

Accessibility & contrast

On white

13.04
#371B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B7C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B7C#FFFFFF#000000##FFFFFF
##371B7C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#1B364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371b7c;
/* rgb */ color: rgb(55, 27, 124);
/* oklch */ color: oklch(33.0% 0.151 288.3);
Tailwind
colors: {
  custom: {
    50: '#765ba3',
    500: '#371b7c',
    950: '#000000',
  },
}
SCSS
$custom: #371b7c;
$custom-light: #765ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#371b7c",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 257.32,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32966,
    "c": 0.15134,
    "h": 288.3
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#371B7C
secondary
#90B043
accent
#E741B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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