#371683#371683

#371683 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.165 H 287.3°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#371683
RGBrgb(55, 22, 131)
HSLhsl(258, 71%, 30%)
HSVhsv(258, 83%, 51%)
CMYKcmyk(58%, 83.2%, 0%, 48.6%)
CIE-LABlab(20.14, 42.84, -54.58)
CIE-LCHlch(20.14, 69.38, 308.13°)
OKLaboklab(33.11% 0.0489 -0.1571)
OKLCHoklch(33.11% 0.165 287.3)
XYZxyz(5.9580, 3.0244, 21.7382)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371683 #628316
analogous
#162C83 #371683 #6D1683
triadic
#371683 #833716 #168337
tetradic
#371683 #83162C #628316 #16836D
square
#371683 #83162C #628316 #16836D
split-complementary
#371683 #836D16 #2C8316
monochromatic
#0B041A #210D4F #371683 #4D1FB7 #6936DD

Accessibility & contrast

On white

13.08
#371683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371683
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371683#FFFFFF#000000##FFFFFF
##3716831.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#14374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371683;
/* rgb */ color: rgb(55, 22, 131);
/* oklch */ color: oklch(33.1% 0.165 287.3);
Tailwind
colors: {
  custom: {
    50: '#7859a8',
    500: '#371683',
    950: '#000000',
  },
}
SCSS
$custom: #371683;
$custom-light: #7859a8;
$custom-dark: #000000;
JSON
{
  "hex": "#371683",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 258.165,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.16456,
    "h": 287.3
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#371683
secondary
#92B73D
accent
#EE3AB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371683

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

Preview Lab → · Contrast checker → · Palette generator →

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