#371F93#371F93

#371F93 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.175 H 282.5°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#371F93
RGBrgb(55, 31, 147)
HSLhsl(252, 65%, 35%)
HSVhsv(252, 79%, 58%)
CMYKcmyk(62.6%, 78.9%, 0%, 42.4%)
CIE-LABlab(23.33, 43.29, -59.31)
CIE-LCHlch(23.33, 73.43, 306.13°)
OKLaboklab(35.84% 0.0379 -0.1711)
OKLCHoklch(35.84% 0.175 282.5)
XYZxyz(7.3304, 3.8983, 27.9643)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F93 #7B931F
analogous
#1F4193 #371F93 #711F93
triadic
#371F93 #93371F #1F9337
tetradic
#371F93 #931F41 #7B931F #1F9371
square
#371F93 #931F41 #7B931F #1F9371
split-complementary
#371F93 #93711F #41931F
monochromatic
#110A2E #241460 #371F93 #4A2AC6 #6E52DA

Accessibility & contrast

On white

11.80
#371F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#371F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F93
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F93#FFFFFF#000000##FFFFFF
##371F931.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371f93;
/* rgb */ color: rgb(55, 31, 147);
/* oklch */ color: oklch(35.8% 0.175 282.5);
Tailwind
colors: {
  custom: {
    50: '#7a5eb4',
    500: '#371f93',
    950: '#000000',
  },
}
SCSS
$custom: #371f93;
$custom-light: #7a5eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#371f93",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 252.414,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35841,
    "c": 0.17521,
    "h": 282.5
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#371F93
secondary
#A7BE50
accent
#E840C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #371F93

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

Preview Lab → · Contrast checker → · Palette generator →

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