#371E5F#371E5F

#371E5F is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.110 H 297.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#371E5F
RGBrgb(55, 30, 95)
HSLhsl(263, 52%, 25%)
HSVhsv(263, 68%, 37%)
CMYKcmyk(42.1%, 68.4%, 0%, 62.7%)
CIE-LABlab(18.22, 27.93, -34.44)
CIE-LCHlch(18.22, 44.34, 309.04°)
OKLaboklab(30.71% 0.0503 -0.0981)
OKLCHoklch(30.71% 0.11 297.1)
XYZxyz(4.1048, 2.5669, 11.1035)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E5F #465F1E
analogous
#1E265F #371E5F #581E5F
triadic
#371E5F #5F371E #1E5F37
tetradic
#371E5F #5F1E26 #465F1E #1E5F58
square
#371E5F #5F1E26 #465F1E #1E5F58
split-complementary
#371E5F #5F581E #265F1E
monochromatic
#0D0717 #1C0F30 #371E5F #522D8E #6D3BBC

Accessibility & contrast

On white

13.88
#371E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#371E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E5F
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E5F#FFFFFF#000000##FFFFFF
##371E5F1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#2D2D3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371e5f;
/* rgb */ color: rgb(55, 30, 95);
/* oklch */ color: oklch(30.7% 0.110 297.1);
Tailwind
colors: {
  custom: {
    50: '#715b8d',
    500: '#371e5f',
    950: '#000000',
  },
}
SCSS
$custom: #371e5f;
$custom-light: #715b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#371e5f",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 263.077,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.11027,
    "h": 297.1
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#371E5F
secondary
#769445
accent
#DB4CA4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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