#371661#371661

#371661 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.124 H 298.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#371661
RGBrgb(55, 22, 97)
HSLhsl(266, 63%, 23%)
HSVhsv(266, 77%, 38%)
CMYKcmyk(43.3%, 77.3%, 0%, 62%)
CIE-LABlab(16.74, 33.06, -38.16)
CIE-LCHlch(16.74, 50.50, 310.91°)
OKLaboklab(29.7% 0.0593 -0.109)
OKLCHoklch(29.7% 0.124 298.5)
XYZxyz(4.0196, 2.2491, 11.5293)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371661 #406116
analogous
#161A61 #371661 #5C1661
triadic
#371661 #613716 #166137
tetradic
#371661 #61161A #406116 #16615C
square
#371661 #61161A #406116 #16615C
split-complementary
#371661 #615C16 #1A6116
monochromatic
#0E0619 #1B0B2F #371661 #532193 #702DC5

Accessibility & contrast

On white

14.48
#371661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#371661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371661
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371661#FFFFFF#000000##FFFFFF
##3716611.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#2D293A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371661;
/* rgb */ color: rgb(55, 22, 97);
/* oklch */ color: oklch(29.7% 0.124 298.5);
Tailwind
colors: {
  custom: {
    50: '#72578f',
    500: '#371661',
    950: '#000000',
  },
}
SCSS
$custom: #371661;
$custom-light: #72578f;
$custom-dark: #000000;
JSON
{
  "hex": "#371661",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 266.4,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29704,
    "c": 0.12414,
    "h": 298.5
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#371661
secondary
#6F983B
accent
#E6429E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371661

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

Preview Lab → · Contrast checker → · Palette generator →

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