#371783#371783

#371783 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.164 H 287.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#371783
RGBrgb(55, 23, 131)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 82%, 51%)
CMYKcmyk(58%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.30, 42.39, -54.32)
CIE-LCHlch(20.30, 68.90, 307.96°)
OKLaboklab(33.22% 0.0482 -0.1564)
OKLCHoklch(33.22% 0.164 287.1)
XYZxyz(5.9775, 3.0634, 21.7446)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371783 #638317
analogous
#172D83 #371783 #6D1783
triadic
#371783 #833717 #178337
tetradic
#371783 #83172D #638317 #17836D
square
#371783 #83172D #638317 #17836D
split-complementary
#371783 #836D17 #2D8317
monochromatic
#0B051B #210E4F #371783 #4D20B7 #6938DC

Accessibility & contrast

On white

13.02
#371783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371783
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371783#FFFFFF#000000##FFFFFF
##3717831.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371783;
/* rgb */ color: rgb(55, 23, 131);
/* oklch */ color: oklch(33.2% 0.164 287.1);
Tailwind
colors: {
  custom: {
    50: '#7859a8',
    500: '#371783',
    950: '#000000',
  },
}
SCSS
$custom: #371783;
$custom-light: #7859a8;
$custom-dark: #000000;
JSON
{
  "hex": "#371783",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 257.778,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33219,
    "c": 0.16367,
    "h": 287.1
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#371783
secondary
#93B73F
accent
#ED3BB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371783

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

Preview Lab → · Contrast checker → · Palette generator →

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