#371882#371882

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

Color values

HEX#371882
RGBrgb(55, 24, 130)
HSLhsl(258, 69%, 30%)
HSVhsv(258, 82%, 51%)
CMYKcmyk(57.7%, 81.5%, 0%, 49%)
CIE-LABlab(20.35, 41.63, -53.60)
CIE-LCHlch(20.35, 67.87, 307.84°)
OKLaboklab(33.22% 0.0479 -0.1543)
OKLCHoklch(33.22% 0.162 287.2)
XYZxyz(5.9302, 3.0769, 21.3962)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371882 #638218
analogous
#182E82 #371882 #6C1882
triadic
#371882 #823718 #188237
tetradic
#371882 #82182E #638218 #18826C
square
#371882 #82182E #638218 #18826C
split-complementary
#371882 #826C18 #2E8218
monochromatic
#0B051B #210E4E #371882 #4D22B6 #693ADB

Accessibility & contrast

On white

13.00
#371882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371882
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371882#FFFFFF#000000##FFFFFF
##3718821.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#15374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371882;
/* rgb */ color: rgb(55, 24, 130);
/* oklch */ color: oklch(33.2% 0.162 287.2);
Tailwind
colors: {
  custom: {
    50: '#785aa7',
    500: '#371882',
    950: '#000000',
  },
}
SCSS
$custom: #371882;
$custom-light: #785aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#371882",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 257.547,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.16158,
    "h": 287.2
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#371882
secondary
#93B640
accent
#EC3CB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371882

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

Preview Lab → · Contrast checker → · Palette generator →

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