#371A7A#371A7A

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

Color values

HEX#371A7A
RGBrgb(55, 26, 122)
HSLhsl(258, 65%, 29%)
HSVhsv(258, 79%, 48%)
CMYKcmyk(54.9%, 78.7%, 0%, 52.2%)
CIE-LABlab(19.87, 38.29, -49.32)
CIE-LCHlch(19.87, 62.44, 307.83°)
OKLaboklab(32.64% 0.0489 -0.1418)
OKLCHoklch(32.64% 0.15 289)
XYZxyz(5.4568, 2.9559, 18.6916)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A7A #5D7A1A
analogous
#1A2D7A #371A7A #671A7A
triadic
#371A7A #7A371A #1A7A37
tetradic
#371A7A #7A1A2D #5D7A1A #1A7A67
square
#371A7A #7A1A2D #5D7A1A #1A7A67
split-complementary
#371A7A #7A671A #2D7A1A
monochromatic
#0B0519 #200F48 #371A7A #4E25AC #6839D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371A7A#FFFFFF#000000##FFFFFF
##371A7A1.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)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#1D3549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371a7a;
/* rgb */ color: rgb(55, 26, 122);
/* oklch */ color: oklch(32.6% 0.150 289.0);
Tailwind
colors: {
  custom: {
    50: '#765aa1',
    500: '#371a7a',
    950: '#000000',
  },
}
SCSS
$custom: #371a7a;
$custom-light: #765aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#371a7a",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 258.125,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32638,
    "c": 0.14997,
    "h": 289
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#371A7A
secondary
#8DAE41
accent
#E840B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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