#371883#371883

#371883 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.163 H 287.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#371883
RGBrgb(55, 24, 131)
HSLhsl(257, 69%, 30%)
HSVhsv(257, 82%, 51%)
CMYKcmyk(58%, 81.7%, 0%, 48.6%)
CIE-LABlab(20.46, 41.93, -54.06)
CIE-LCHlch(20.46, 68.41, 307.79°)
OKLaboklab(33.33% 0.0475 -0.1556)
OKLCHoklch(33.33% 0.163 287)
XYZxyz(5.9977, 3.1039, 21.7514)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371883 #648318
analogous
#182F83 #371883 #6C1883
triadic
#371883 #833718 #188337
tetradic
#371883 #83182F #648318 #18836C
square
#371883 #83182F #648318 #18836C
split-complementary
#371883 #836C18 #2F8318
monochromatic
#0C051C #210F4F #371883 #4D21B7 #693ADB

Accessibility & contrast

On white

12.96
#371883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371883
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371883#FFFFFF#000000##FFFFFF
##3718831.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#13384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371883;
/* rgb */ color: rgb(55, 24, 131);
/* oklch */ color: oklch(33.3% 0.163 287.0);
Tailwind
colors: {
  custom: {
    50: '#785aa8',
    500: '#371883',
    950: '#000000',
  },
}
SCSS
$custom: #371883;
$custom-light: #785aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#371883",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 257.383,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.16275,
    "h": 287
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#371883
secondary
#94B740
accent
#EC3CB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371883

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

Preview Lab → · Contrast checker → · Palette generator →

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