#371B94#371B94

#371B94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.180 H 282.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#371B94
RGBrgb(55, 27, 148)
HSLhsl(254, 69%, 34%)
HSVhsv(254, 82%, 58%)
CMYKcmyk(62.8%, 81.8%, 0%, 42%)
CIE-LABlab(22.77, 45.53, -60.86)
CIE-LCHlch(22.77, 76.00, 306.80°)
OKLaboklab(35.48% 0.04 -0.1755)
OKLCHoklch(35.48% 0.18 282.8)
XYZxyz(7.3111, 3.7337, 28.3466)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B94 #78941B
analogous
#1B3C94 #371B94 #741B94
triadic
#371B94 #94371B #1B9437
tetradic
#371B94 #941B3C #78941B #1B9474
square
#371B94 #941B3C #78941B #1B9474
split-complementary
#371B94 #94741B #3C941B
monochromatic
#11082C #241260 #371B94 #4A24C8 #6D4BDE

Accessibility & contrast

On white

12.02
#371B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#371B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B94
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B94#FFFFFF#000000##FFFFFF
##371B941.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371b94;
/* rgb */ color: rgb(55, 27, 148);
/* oklch */ color: oklch(35.5% 0.180 282.8);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#371b94',
    950: '#000000',
  },
}
SCSS
$custom: #371b94;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371b94",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 253.884,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.18003,
    "h": 282.8
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#371B94
secondary
#A5C04B
accent
#EC3CC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371B94

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

Preview Lab → · Contrast checker → · Palette generator →

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