#371B4E#371B4E

#371B4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.092 H 306.8°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#371B4E
RGBrgb(55, 27, 78)
HSLhsl(273, 49%, 21%)
HSVhsv(273, 65%, 31%)
CMYKcmyk(29.5%, 65.4%, 0%, 69.4%)
CIE-LABlab(16.24, 24.86, -26.20)
CIE-LCHlch(16.24, 36.12, 313.49°)
OKLaboklab(28.85% 0.0554 -0.0739)
OKLCHoklch(28.85% 0.092 306.8)
XYZxyz(3.3423, 2.1462, 7.4444)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B4E #324E1B
analogous
#1D1B4E #371B4E #4E1B4B
triadic
#371B4E #4E371B #1B4E37
tetradic
#371B4E #4E1D1B #324E1B #1B4B4E
square
#371B4E #4E1D1B #324E1B #1B4B4E
split-complementary
#371B4E #4B4E1B #1B4E1D
monochromatic
#100817 #170B21 #371B4E #572B7B #773AA9

Accessibility & contrast

On white

14.69
#371B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#371B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B4E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B4E#FFFFFF#000000##FFFFFF
##371B4E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#12284D
Tritanopia (blue-blind)
#332531
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371b4e;
/* rgb */ color: rgb(55, 27, 78);
/* oklch */ color: oklch(28.9% 0.092 306.8);
Tailwind
colors: {
  custom: {
    50: '#705980',
    500: '#371b4e',
    950: '#000000',
  },
}
SCSS
$custom: #371b4e;
$custom-light: #705980;
$custom-dark: #000000;
JSON
{
  "hex": "#371b4e",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 272.941,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28852,
    "c": 0.09236,
    "h": 306.8
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#371B4E
secondary
#5F8441
accent
#D8508D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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