#371D74#371D74

#371D74 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.139 H 290.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#371D74
RGBrgb(55, 29, 116)
HSLhsl(258, 60%, 28%)
HSVhsv(258, 75%, 45%)
CMYKcmyk(52.6%, 75%, 0%, 54.5%)
CIE-LABlab(19.85, 34.88, -45.50)
CIE-LCHlch(19.85, 57.33, 307.47°)
OKLaboklab(32.45% 0.0478 -0.1306)
OKLCHoklch(32.45% 0.139 290.1)
XYZxyz(5.1664, 2.9517, 16.8171)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D74 #5A741D
analogous
#1D2E74 #371D74 #621D74
triadic
#371D74 #74371D #1D7437
tetradic
#371D74 #741D2E #5A741D #1D7462
square
#371D74 #741D2E #5A741D #1D7462
split-complementary
#371D74 #74621D #2E741D
monochromatic
#0C0618 #201143 #371D74 #4E29A5 #683DCE

Accessibility & contrast

On white

13.20
#371D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D74
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D74#FFFFFF#000000##FFFFFF
##371D741.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#223446
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371d74;
/* rgb */ color: rgb(55, 29, 116);
/* oklch */ color: oklch(32.4% 0.139 290.1);
Tailwind
colors: {
  custom: {
    50: '#755c9d',
    500: '#371d74',
    950: '#000000',
  },
}
SCSS
$custom: #371d74;
$custom-light: #755c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#371d74",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 257.931,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32448,
    "c": 0.13908,
    "h": 290.1
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#371D74
secondary
#8AA845
accent
#E345B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371D74

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

Preview Lab → · Contrast checker → · Palette generator →

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