#371B8A#371B8A

#371B8A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.168 H 284.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#371B8A
RGBrgb(55, 27, 138)
HSLhsl(255, 67%, 32%)
HSVhsv(255, 80%, 54%)
CMYKcmyk(60.1%, 80.4%, 0%, 45.9%)
CIE-LABlab(21.69, 42.56, -56.42)
CIE-LCHlch(21.69, 70.68, 307.03°)
OKLaboklab(34.41% 0.0432 -0.1626)
OKLCHoklch(34.41% 0.168 284.9)
XYZxyz(6.5535, 3.4307, 24.3567)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B8A #6E8A1B
analogous
#1B378A #371B8A #6F1B8A
triadic
#371B8A #8A371B #1B8A37
tetradic
#371B8A #8A1B37 #6E8A1B #1B8A6F
square
#371B8A #8A1B37 #6E8A1B #1B8A6F
split-complementary
#371B8A #8A6F1B #378A1B
monochromatic
#0E0724 #231157 #371B8A #4B25BD #6B45DB

Accessibility & contrast

On white

12.45
#371B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B8A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B8A#FFFFFF#000000##FFFFFF
##371B8A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#063C52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371b8a;
/* rgb */ color: rgb(55, 27, 138);
/* oklch */ color: oklch(34.4% 0.168 284.9);
Tailwind
colors: {
  custom: {
    50: '#795cad',
    500: '#371b8a',
    950: '#000000',
  },
}
SCSS
$custom: #371b8a;
$custom-light: #795cad;
$custom-dark: #000000;
JSON
{
  "hex": "#371b8a",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 255.135,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34412,
    "c": 0.16823,
    "h": 284.9
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#371B8A
secondary
#9EBC45
accent
#EA3EBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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