#371162#371162

#371162 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.131 H 299.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#371162
RGBrgb(55, 17, 98)
HSLhsl(268, 70%, 23%)
HSVhsv(268, 83%, 38%)
CMYKcmyk(43.9%, 82.7%, 0%, 61.6%)
CIE-LABlab(15.98, 35.79, -40.08)
CIE-LCHlch(15.98, 53.73, 311.77°)
OKLaboklab(29.19% 0.064 -0.1146)
OKLCHoklch(29.19% 0.131 299.2)
XYZxyz(3.9800, 2.0949, 11.7476)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371162 #3C6211
analogous
#111462 #371162 #5F1162
triadic
#371162 #623711 #116237
tetradic
#371162 #621114 #3C6211 #11625F
square
#371162 #621114 #3C6211 #11625F
split-complementary
#371162 #625F11 #146211
monochromatic
#0F051A #1A082E #371162 #541A96 #7223CA

Accessibility & contrast

On white

14.80
#371162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#371162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371162
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371162#FFFFFF#000000##FFFFFF
##3711621.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#2C2739
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371162;
/* rgb */ color: rgb(55, 17, 98);
/* oklch */ color: oklch(29.2% 0.131 299.2);
Tailwind
colors: {
  custom: {
    50: '#73548f',
    500: '#371162',
    950: '#000000',
  },
}
SCSS
$custom: #371162;
$custom-light: #73548f;
$custom-dark: #000000;
JSON
{
  "hex": "#371162",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 268.148,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29194,
    "c": 0.13126,
    "h": 299.2
  },
  "luminance": 0.02095
}

Semantic roles & 50–950 ramp

primary
#371162
secondary
#6B9A34
accent
#ED3B99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371162

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

Preview Lab → · Contrast checker → · Palette generator →

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