#371168#371168

#371168 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.138 H 296.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#371168
RGBrgb(55, 17, 104)
HSLhsl(266, 72%, 24%)
HSVhsv(266, 84%, 41%)
CMYKcmyk(47.1%, 83.7%, 0%, 59.2%)
CIE-LABlab(16.57, 37.43, -43.08)
CIE-LCHlch(16.57, 57.07, 310.99°)
OKLaboklab(29.78% 0.062 -0.1234)
OKLCHoklch(29.78% 0.138 296.7)
XYZxyz(4.2740, 2.2125, 13.2959)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371168 #426811
analogous
#111668 #371168 #621168
triadic
#371168 #683711 #116837
tetradic
#371168 #681116 #426811 #116862
square
#371168 #681116 #426811 #116862
split-complementary
#371168 #686211 #166811
monochromatic
#0E041A #1B0833 #371168 #531A9D #6F22D1

Accessibility & contrast

On white

14.56
#371168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#371168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371168
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371168#FFFFFF#000000##FFFFFF
##3711681.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#2A293D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371168;
/* rgb */ color: rgb(55, 17, 104);
/* oklch */ color: oklch(29.8% 0.138 296.7);
Tailwind
colors: {
  custom: {
    50: '#745494',
    500: '#371168',
    950: '#000000',
  },
}
SCSS
$custom: #371168;
$custom-light: #745494;
$custom-dark: #000000;
JSON
{
  "hex": "#371168",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 266.207,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29784,
    "c": 0.13813,
    "h": 296.7
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#371168
secondary
#71A035
accent
#EF399F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #371168

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

Preview Lab → · Contrast checker → · Palette generator →

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