#371B77#371B77

#371B77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.145 H 289.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#371B77
RGBrgb(55, 27, 119)
HSLhsl(258, 63%, 29%)
HSVhsv(258, 77%, 47%)
CMYKcmyk(53.8%, 77.3%, 0%, 53.3%)
CIE-LABlab(19.75, 36.87, -47.58)
CIE-LCHlch(19.75, 60.20, 307.77°)
OKLaboklab(32.47% 0.0489 -0.1367)
OKLCHoklch(32.47% 0.145 289.7)
XYZxyz(5.2963, 2.9278, 17.7352)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B77 #5B771B
analogous
#1B2D77 #371B77 #651B77
triadic
#371B77 #77371B #1B7737
tetradic
#371B77 #771B2D #5B771B #1B7765
square
#371B77 #771B2D #5B771B #1B7765
split-complementary
#371B77 #77651B #2D771B
monochromatic
#0C0619 #201045 #371B77 #4E26A9 #683AD2

Accessibility & contrast

On white

13.24
#371B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B77
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B77#FFFFFF#000000##FFFFFF
##371B771.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#203447
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371b77;
/* rgb */ color: rgb(55, 27, 119);
/* oklch */ color: oklch(32.5% 0.145 289.7);
Tailwind
colors: {
  custom: {
    50: '#755b9f',
    500: '#371b77',
    950: '#000000',
  },
}
SCSS
$custom: #371b77;
$custom-light: #755b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#371b77",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 258.261,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32468,
    "c": 0.14519,
    "h": 289.7
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#371B77
secondary
#8BAB42
accent
#E642B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371B77

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

Preview Lab → · Contrast checker → · Palette generator →

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