#371777#371777

#371777 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 290.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#371777
RGBrgb(55, 23, 119)
HSLhsl(260, 68%, 28%)
HSVhsv(260, 81%, 47%)
CMYKcmyk(53.8%, 80.7%, 0%, 53.3%)
CIE-LABlab(19.04, 38.90, -48.75)
CIE-LCHlch(19.04, 62.37, 308.59°)
OKLaboklab(31.97% 0.0522 -0.1401)
OKLCHoklch(31.97% 0.15 290.4)
XYZxyz(5.2108, 2.7567, 17.7067)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371777 #577717
analogous
#172777 #371777 #671777
triadic
#371777 #773717 #177737
tetradic
#371777 #771727 #577717 #177767
square
#371777 #771727 #577717 #177767
split-complementary
#371777 #776717 #277717
monochromatic
#0C051A #1F0D44 #371777 #4F21AA #6931D7

Accessibility & contrast

On white

13.54
#371777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#371777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371777
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371777#FFFFFF#000000##FFFFFF
##3717771.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#203247
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371777;
/* rgb */ color: rgb(55, 23, 119);
/* oklch */ color: oklch(32.0% 0.150 290.4);
Tailwind
colors: {
  custom: {
    50: '#76589f',
    500: '#371777',
    950: '#000000',
  },
}
SCSS
$custom: #371777;
$custom-light: #76589f;
$custom-dark: #000000;
JSON
{
  "hex": "#371777",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 260,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3197,
    "c": 0.14952,
    "h": 290.4
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#371777
secondary
#87AC3E
accent
#EA3DB1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #371777

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

Preview Lab → · Contrast checker → · Palette generator →

#371777 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva