#371A9E#371A9E

#371A9E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.192 H 281.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#371A9E
RGBrgb(55, 26, 158)
HSLhsl(253, 72%, 36%)
HSVhsv(253, 84%, 62%)
CMYKcmyk(65.2%, 83.5%, 0%, 38%)
CIE-LABlab(23.73, 48.90, -65.41)
CIE-LCHlch(23.73, 81.67, 306.78°)
OKLaboklab(36.48% 0.0372 -0.1888)
OKLCHoklch(36.48% 0.192 281.1)
XYZxyz(8.1146, 4.0190, 32.6893)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A9E #819E1A
analogous
#1A3F9E #371A9E #791A9E
triadic
#371A9E #9E371A #1A9E37
tetradic
#371A9E #9E1A3F #819E1A #1A9E79
square
#371A9E #9E1A3F #819E1A #1A9E79
split-complementary
#371A9E #9E791A #3F9E1A
monochromatic
#120935 #251169 #371A9E #4923D3 #7050E2

Accessibility & contrast

On white

11.64
#371A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A9E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A9E#FFFFFF#000000##FFFFFF
##371A9E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371a9e;
/* rgb */ color: rgb(55, 26, 158);
/* oklch */ color: oklch(36.5% 0.192 281.1);
Tailwind
colors: {
  custom: {
    50: '#7d5dbc',
    500: '#371a9e',
    950: '#000000',
  },
}
SCSS
$custom: #371a9e;
$custom-light: #7d5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#371a9e",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 253.182,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36476,
    "c": 0.19239,
    "h": 281.1
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#371A9E
secondary
#ABC54F
accent
#EE39C7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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