#371E6B#371E6B

#371E6B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.126 H 292.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#371E6B
RGBrgb(55, 30, 107)
HSLhsl(259, 56%, 27%)
HSVhsv(259, 72%, 42%)
CMYKcmyk(48.6%, 72%, 0%, 58%)
CIE-LABlab(19.23, 31.56, -40.68)
CIE-LCHlch(19.23, 51.49, 307.81°)
OKLaboklab(31.76% 0.0486 -0.1165)
OKLCHoklch(31.76% 0.126 292.6)
XYZxyz(4.6929, 2.8022, 14.2007)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E6B #526B1E
analogous
#1E2B6B #371E6B #5E1E6B
triadic
#371E6B #6B371E #1E6B37
tetradic
#371E6B #6B1E2B #526B1E #1E6B5E
square
#371E6B #6B1E2B #526B1E #1E6B5E
split-complementary
#371E6B #6B5E1E #2B6B1E
monochromatic
#0C0718 #1E113B #371E6B #502B9B #693BC8

Accessibility & contrast

On white

13.46
#371E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#371E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E6B
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E6B#FFFFFF#000000##FFFFFF
##371E6B1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#273142
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371e6b;
/* rgb */ color: rgb(55, 30, 107);
/* oklch */ color: oklch(31.8% 0.126 292.6);
Tailwind
colors: {
  custom: {
    50: '#735c96',
    500: '#371e6b',
    950: '#000000',
  },
}
SCSS
$custom: #371e6b;
$custom-light: #735c96;
$custom-dark: #000000;
JSON
{
  "hex": "#371e6b",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 259.481,
    "s": 56.204,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31755,
    "c": 0.12621,
    "h": 292.6
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#371E6B
secondary
#829F45
accent
#DF48AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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