#371F94#371F94

#371F94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.176 H 282.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#371F94
RGBrgb(55, 31, 148)
HSLhsl(252, 65%, 35%)
HSVhsv(252, 79%, 58%)
CMYKcmyk(62.8%, 79.1%, 0%, 42%)
CIE-LABlab(23.44, 43.60, -59.76)
CIE-LCHlch(23.44, 73.97, 306.11°)
OKLaboklab(35.95% 0.0376 -0.1724)
OKLCHoklch(35.95% 0.176 282.3)
XYZxyz(7.4092, 3.9298, 28.3793)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F94 #7C941F
analogous
#1F4194 #371F94 #721F94
triadic
#371F94 #94371F #1F9437
tetradic
#371F94 #941F41 #7C941F #1F9472
square
#371F94 #941F41 #7C941F #1F9472
split-complementary
#371F94 #94721F #41941F
monochromatic
#110A2F #241461 #371F94 #4A2AC7 #6E53DB

Accessibility & contrast

On white

11.76
#371F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F94
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F94#FFFFFF#000000##FFFFFF
##371F941.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371f94;
/* rgb */ color: rgb(55, 31, 148);
/* oklch */ color: oklch(35.9% 0.176 282.3);
Tailwind
colors: {
  custom: {
    50: '#7a5eb5',
    500: '#371f94',
    950: '#000000',
  },
}
SCSS
$custom: #371f94;
$custom-light: #7a5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371f94",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 252.308,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35946,
    "c": 0.17642,
    "h": 282.3
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#371F94
secondary
#A8BE51
accent
#E83FC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #371F94

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

Preview Lab → · Contrast checker → · Palette generator →

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