#371C66#371C66

#371C66 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.122 H 295.0°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#371C66
RGBrgb(55, 28, 102)
HSLhsl(262, 57%, 25%)
HSVhsv(262, 73%, 40%)
CMYKcmyk(46.1%, 72.5%, 0%, 60%)
CIE-LABlab(18.37, 31.21, -38.81)
CIE-LCHlch(18.37, 49.80, 308.81°)
OKLaboklab(31% 0.0517 -0.111)
OKLCHoklch(31% 0.122 295)
XYZxyz(4.3884, 2.6019, 12.8388)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C66 #4B661C
analogous
#1C2666 #371C66 #5C1C66
triadic
#371C66 #66371C #1C6637
tetradic
#371C66 #661C26 #4B661C #1C665C
square
#371C66 #661C26 #4B661C #1C665C
split-complementary
#371C66 #665C1C #26661C
monochromatic
#0D0718 #1D0F36 #371C66 #512996 #6B36C6

Accessibility & contrast

On white

13.81
#371C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#371C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C66
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C66#FFFFFF#000000##FFFFFF
##371C661.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#2A2E3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371c66;
/* rgb */ color: rgb(55, 28, 102);
/* oklch */ color: oklch(31.0% 0.122 295.0);
Tailwind
colors: {
  custom: {
    50: '#735a92',
    500: '#371c66',
    950: '#000000',
  },
}
SCSS
$custom: #371c66;
$custom-light: #735a92;
$custom-dark: #000000;
JSON
{
  "hex": "#371c66",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 261.892,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31002,
    "c": 0.12242,
    "h": 295
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#371C66
secondary
#7B9B43
accent
#E048A9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371C66

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

Preview Lab → · Contrast checker → · Palette generator →

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