#371A7D#371A7D

#371A7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 288.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#371A7D
RGBrgb(55, 26, 125)
HSLhsl(258, 66%, 30%)
HSVhsv(258, 79%, 49%)
CMYKcmyk(56%, 79.2%, 0%, 51%)
CIE-LABlab(20.17, 39.18, -50.73)
CIE-LCHlch(20.17, 64.10, 307.68°)
OKLaboklab(32.94% 0.048 -0.1459)
OKLCHoklch(32.94% 0.154 288.2)
XYZxyz(5.6455, 3.0314, 19.6857)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A7D #607D1A
analogous
#1A2E7D #371A7D #691A7D
triadic
#371A7D #7D371A #1A7D37
tetradic
#371A7D #7D1A2E #607D1A #1A7D69
square
#371A7D #7D1A2E #607D1A #1A7D69
split-complementary
#371A7D #7D691A #2E7D1A
monochromatic
#0B0519 #210F4A #371A7D #4D25B0 #693BD6

Accessibility & contrast

On white

13.07
#371A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A7D
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A7D#FFFFFF#000000##FFFFFF
##371A7D1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#1A364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371a7d;
/* rgb */ color: rgb(55, 26, 125);
/* oklch */ color: oklch(32.9% 0.154 288.2);
Tailwind
colors: {
  custom: {
    50: '#775aa4',
    500: '#371a7d',
    950: '#000000',
  },
}
SCSS
$custom: #371a7d;
$custom-light: #775aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#371a7d",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 257.576,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32942,
    "c": 0.15362,
    "h": 288.2
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#371A7D
secondary
#90B142
accent
#E93FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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