#371790#371790

#371790 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.179 H 284.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#371790
RGBrgb(55, 23, 144)
HSLhsl(256, 72%, 33%)
HSVhsv(256, 84%, 56%)
CMYKcmyk(61.8%, 84%, 0%, 43.5%)
CIE-LABlab(21.72, 46.14, -60.12)
CIE-LCHlch(21.72, 75.78, 307.51°)
OKLaboklab(34.63% 0.0436 -0.1733)
OKLCHoklch(34.63% 0.179 284.1)
XYZxyz(6.9144, 3.4382, 26.6794)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371790 #709017
analogous
#173390 #371790 #741790
triadic
#371790 #903717 #179037
tetradic
#371790 #901733 #709017 #179074
square
#371790 #901733 #709017 #179074
split-complementary
#371790 #907417 #339017
monochromatic
#0F0626 #230F5B #371790 #4B1FC5 #6B41E1

Accessibility & contrast

On white

12.44
#371790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371790
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371790#FFFFFF#000000##FFFFFF
##3717901.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371790;
/* rgb */ color: rgb(55, 23, 144);
/* oklch */ color: oklch(34.6% 0.179 284.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ab2',
    500: '#371790',
    950: '#000000',
  },
}
SCSS
$custom: #371790;
$custom-light: #7a5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#371790",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 255.868,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34625,
    "c": 0.17871,
    "h": 284.1
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#371790
secondary
#9FC142
accent
#EF39BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371790

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

Preview Lab → · Contrast checker → · Palette generator →

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