#371F97#371F97

#371F97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.180 H 281.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#371F97
RGBrgb(55, 31, 151)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 79%, 59%)
CMYKcmyk(63.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.76, 44.51, -61.08)
CIE-LCHlch(23.76, 75.58, 306.08°)
OKLaboklab(36.26% 0.0367 -0.1762)
OKLCHoklch(36.26% 0.18 281.8)
XYZxyz(7.6497, 4.0260, 29.6461)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F97 #7F971F
analogous
#1F4397 #371F97 #731F97
triadic
#371F97 #97371F #1F9737
tetradic
#371F97 #971F43 #7F971F #1F9773
square
#371F97 #971F43 #7F971F #1F9773
split-complementary
#371F97 #97731F #43971F
monochromatic
#120A31 #251564 #371F97 #4929CA #7054DC

Accessibility & contrast

On white

11.63
#371F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#371F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F97
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F97#FFFFFF#000000##FFFFFF
##371F971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371f97;
/* rgb */ color: rgb(55, 31, 151);
/* oklch */ color: oklch(36.3% 0.180 281.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fb7',
    500: '#371f97',
    950: '#000000',
  },
}
SCSS
$custom: #371f97;
$custom-light: #7b5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#371f97",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 252,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36264,
    "c": 0.18001,
    "h": 281.8
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#371F97
secondary
#AABF52
accent
#E93FC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371F97

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

Preview Lab → · Contrast checker → · Palette generator →

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