#371C68#371C68

#371C68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.125 H 294.2°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#371C68
RGBrgb(55, 28, 104)
HSLhsl(261, 58%, 26%)
HSVhsv(261, 73%, 41%)
CMYKcmyk(47.1%, 73.1%, 0%, 59.2%)
CIE-LABlab(18.55, 31.81, -39.83)
CIE-LCHlch(18.55, 50.98, 308.61°)
OKLaboklab(31.18% 0.0513 -0.114)
OKLCHoklch(31.18% 0.125 294.2)
XYZxyz(4.4888, 2.6421, 13.3675)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C68 #4D681C
analogous
#1C2768 #371C68 #5D1C68
triadic
#371C68 #68371C #1C6837
tetradic
#371C68 #681C27 #4D681C #1C685D
square
#371C68 #681C27 #4D681C #1C685D
split-complementary
#371C68 #685D1C #27681C
monochromatic
#0D0618 #1D0F38 #371C68 #502998 #6A36C8

Accessibility & contrast

On white

13.74
#371C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#371C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C68
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C68#FFFFFF#000000##FFFFFF
##371C681.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#292F3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371c68;
/* rgb */ color: rgb(55, 28, 104);
/* oklch */ color: oklch(31.2% 0.125 294.2);
Tailwind
colors: {
  custom: {
    50: '#735a94',
    500: '#371c68',
    950: '#000000',
  },
}
SCSS
$custom: #371c68;
$custom-light: #735a94;
$custom-dark: #000000;
JSON
{
  "hex": "#371c68",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 261.316,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31183,
    "c": 0.12502,
    "h": 294.2
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#371C68
secondary
#7D9D43
accent
#E147AA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371C68

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

Preview Lab → · Contrast checker → · Palette generator →

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