#371D68#371D68

#371D68 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.124 H 294.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#371D68
RGBrgb(55, 29, 104)
HSLhsl(261, 56%, 26%)
HSVhsv(261, 72%, 41%)
CMYKcmyk(47.1%, 72.1%, 0%, 59.2%)
CIE-LABlab(18.76, 31.23, -39.49)
CIE-LCHlch(18.76, 50.35, 308.34°)
OKLaboklab(31.33% 0.0502 -0.113)
OKLCHoklch(31.33% 0.124 294)
XYZxyz(4.5129, 2.6903, 13.3755)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D68 #4E681D
analogous
#1D2868 #371D68 #5C1D68
triadic
#371D68 #68371D #1D6837
tetradic
#371D68 #681D28 #4E681D #1D685C
square
#371D68 #681D28 #4E681D #1D685C
split-complementary
#371D68 #685C1D #28681D
monochromatic
#0D0718 #1E1038 #371D68 #502A98 #6A38C7

Accessibility & contrast

On white

13.65
#371D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#371D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D68
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D68#FFFFFF#000000##FFFFFF
##371D681.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d68;
/* rgb */ color: rgb(55, 29, 104);
/* oklch */ color: oklch(31.3% 0.124 294.0);
Tailwind
colors: {
  custom: {
    50: '#735b94',
    500: '#371d68',
    950: '#000000',
  },
}
SCSS
$custom: #371d68;
$custom-light: #735b94;
$custom-dark: #000000;
JSON
{
  "hex": "#371d68",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 260.8,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31332,
    "c": 0.12365,
    "h": 294
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#371D68
secondary
#7E9D44
accent
#E048AB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371D68

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

Preview Lab → · Contrast checker → · Palette generator →

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