#371B88#371B88

#371B88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.166 H 285.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#371B88
RGBrgb(55, 27, 136)
HSLhsl(255, 67%, 32%)
HSVhsv(255, 80%, 53%)
CMYKcmyk(59.6%, 80.1%, 0%, 46.7%)
CIE-LABlab(21.48, 41.97, -55.52)
CIE-LCHlch(21.48, 69.59, 307.09°)
OKLaboklab(34.2% 0.0439 -0.1599)
OKLCHoklch(34.2% 0.166 285.3)
XYZxyz(6.4101, 3.3733, 23.6011)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B88 #6C881B
analogous
#1B3688 #371B88 #6E1B88
triadic
#371B88 #88371B #1B8837
tetradic
#371B88 #881B36 #6C881B #1B886E
square
#371B88 #881B36 #6C881B #1B886E
split-complementary
#371B88 #886E1B #36881B
monochromatic
#0E0722 #221155 #371B88 #4C25BB #6A44DA

Accessibility & contrast

On white

12.54
#371B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B88
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B88#FFFFFF#000000##FFFFFF
##371B881.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#0A3B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371b88;
/* rgb */ color: rgb(55, 27, 136);
/* oklch */ color: oklch(34.2% 0.166 285.3);
Tailwind
colors: {
  custom: {
    50: '#785cac',
    500: '#371b88',
    950: '#000000',
  },
}
SCSS
$custom: #371b88;
$custom-light: #785cac;
$custom-dark: #000000;
JSON
{
  "hex": "#371b88",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 255.413,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.16585,
    "h": 285.3
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#371B88
secondary
#9CBB44
accent
#EA3EBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B88

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

Preview Lab → · Contrast checker → · Palette generator →

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