#371B85#371B85

#371B85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.162 H 286.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#371B85
RGBrgb(55, 27, 133)
HSLhsl(256, 66%, 31%)
HSVhsv(256, 80%, 52%)
CMYKcmyk(58.6%, 79.7%, 0%, 47.8%)
CIE-LABlab(21.17, 41.07, -54.15)
CIE-LCHlch(21.17, 67.96, 307.18°)
OKLaboklab(33.89% 0.0448 -0.1559)
OKLCHoklch(33.89% 0.162 286)
XYZxyz(6.1998, 3.2892, 22.4939)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B85 #69851B
analogous
#1B3485 #371B85 #6C1B85
triadic
#371B85 #85371B #1B8537
tetradic
#371B85 #851B34 #69851B #1B856C
square
#371B85 #851B34 #69851B #1B856C
split-complementary
#371B85 #856C1B #34851B
monochromatic
#0D061F #221152 #371B85 #4C25B8 #6A42D9

Accessibility & contrast

On white

12.67
#371B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B85
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B85#FFFFFF#000000##FFFFFF
##371B851.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#103A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371b85;
/* rgb */ color: rgb(55, 27, 133);
/* oklch */ color: oklch(33.9% 0.162 286.0);
Tailwind
colors: {
  custom: {
    50: '#785baa',
    500: '#371b85',
    950: '#000000',
  },
}
SCSS
$custom: #371b85;
$custom-light: #785baa;
$custom-dark: #000000;
JSON
{
  "hex": "#371b85",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 255.849,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33888,
    "c": 0.16225,
    "h": 286
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#371B85
secondary
#99B844
accent
#E93FBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B85

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

Preview Lab → · Contrast checker → · Palette generator →

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