#371B98#371B98

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

Color values

HEX#371B98
RGBrgb(55, 27, 152)
HSLhsl(253, 70%, 35%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(63.8%, 82.2%, 0%, 40.4%)
CIE-LABlab(23.21, 46.71, -62.60)
CIE-LCHlch(23.21, 78.10, 306.73°)
OKLaboklab(35.92% 0.0387 -0.1806)
OKLCHoklch(35.92% 0.185 282.1)
XYZxyz(7.6332, 3.8625, 30.0430)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B98 #7C981B
analogous
#1B3E98 #371B98 #751B98
triadic
#371B98 #98371B #1B9837
tetradic
#371B98 #981B3E #7C981B #1B9875
square
#371B98 #981B3E #7C981B #1B9875
split-complementary
#371B98 #98751B #3E981B
monochromatic
#110930 #241264 #371B98 #4A24CC #6E4EE0

Accessibility & contrast

On white

11.85
#371B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#371B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B98
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B98#FFFFFF#000000##FFFFFF
##371B981.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371b98;
/* rgb */ color: rgb(55, 27, 152);
/* oklch */ color: oklch(35.9% 0.185 282.1);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#371b98',
    950: '#000000',
  },
}
SCSS
$custom: #371b98;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#371b98",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 253.44,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.18468,
    "h": 282.1
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#371B98
secondary
#A8C24D
accent
#ED3BC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371B98

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

Preview Lab → · Contrast checker → · Palette generator →

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