#371D9C#371D9C

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

Color values

HEX#371D9C
RGBrgb(55, 29, 156)
HSLhsl(252, 69%, 36%)
HSVhsv(252, 81%, 61%)
CMYKcmyk(64.7%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.97, 46.97, -63.80)
CIE-LCHlch(23.97, 79.23, 306.36°)
OKLaboklab(36.57% 0.0364 -0.1841)
OKLCHoklch(36.57% 0.188 281.2)
XYZxyz(8.0138, 4.0906, 31.8133)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D9C #829C1D
analogous
#1D439C #371D9C #771D9C
triadic
#371D9C #9C371D #1D9C37
tetradic
#371D9C #9C1D43 #829C1D #1D9C77
square
#371D9C #9C1D43 #829C1D #1D9C77
split-complementary
#371D9C #9C771D #439C1D
monochromatic
#130A35 #251368 #371D9C #4927D0 #7154DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371D9C#FFFFFF#000000##FFFFFF
##371D9C1.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)
#003D9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371d9c;
/* rgb */ color: rgb(55, 29, 156);
/* oklch */ color: oklch(36.6% 0.188 281.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eba',
    500: '#371d9c',
    950: '#000000',
  },
}
SCSS
$custom: #371d9c;
$custom-light: #7c5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#371d9c",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 252.283,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.18767,
    "h": 281.2
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#371D9C
secondary
#ABC252
accent
#EB3CC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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