#371F99#371F99

#371F99 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.182 H 281.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#371F99
RGBrgb(55, 31, 153)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(64.1%, 79.7%, 0%, 40%)
CIE-LABlab(23.97, 45.11, -61.96)
CIE-LCHlch(23.97, 76.64, 306.06°)
OKLaboklab(36.48% 0.0362 -0.1788)
OKLCHoklch(36.48% 0.182 281.4)
XYZxyz(7.8135, 4.0915, 30.5088)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F99 #81991F
analogous
#1F4499 #371F99 #741F99
triadic
#371F99 #99371F #1F9937
tetradic
#371F99 #991F44 #81991F #1F9974
square
#371F99 #991F44 #81991F #1F9974
split-complementary
#371F99 #99741F #44991F
monochromatic
#120A33 #251566 #371F99 #4929CC #7056DD

Accessibility & contrast

On white

11.55
#371F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#371F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F99
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F99#FFFFFF#000000##FFFFFF
##371F991.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371f99;
/* rgb */ color: rgb(55, 31, 153);
/* oklch */ color: oklch(36.5% 0.182 281.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fb8',
    500: '#371f99',
    950: '#000000',
  },
}
SCSS
$custom: #371f99;
$custom-light: #7b5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371f99",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 251.803,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36477,
    "c": 0.18239,
    "h": 281.4
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#371F99
secondary
#ABC054
accent
#E93FC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371F99

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

Preview Lab → · Contrast checker → · Palette generator →

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