#371F6E#371F6E

#371F6E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.129 H 291.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#371F6E
RGBrgb(55, 31, 110)
HSLhsl(258, 56%, 28%)
HSVhsv(258, 72%, 43%)
CMYKcmyk(50%, 71.8%, 0%, 56.9%)
CIE-LABlab(19.71, 31.90, -41.85)
CIE-LCHlch(19.71, 52.62, 307.31°)
OKLaboklab(32.18% 0.047 -0.1199)
OKLCHoklch(32.18% 0.129 291.4)
XYZxyz(4.8792, 2.9178, 15.0549)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F6E #566E1F
analogous
#1F2E6E #371F6E #5E1F6E
triadic
#371F6E #6E371F #1F6E37
tetradic
#371F6E #6E1F2E #566E1F #1F6E5E
square
#371F6E #6E1F2E #566E1F #1F6E5E
split-complementary
#371F6E #6E5E1F #2E6E1F
monochromatic
#0C0718 #1F123E #371F6E #4F2C9E #693FC9

Accessibility & contrast

On white

13.26
#371F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F6E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F6E#FFFFFF#000000##FFFFFF
##371F6E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#263344
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371f6e;
/* rgb */ color: rgb(55, 31, 110);
/* oklch */ color: oklch(32.2% 0.129 291.4);
Tailwind
colors: {
  custom: {
    50: '#745c98',
    500: '#371f6e',
    950: '#000000',
  },
}
SCSS
$custom: #371f6e;
$custom-light: #745c98;
$custom-dark: #000000;
JSON
{
  "hex": "#371f6e",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 258.228,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3218,
    "c": 0.12879,
    "h": 291.4
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#371F6E
secondary
#86A247
accent
#DF48B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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