#371174#371174

#371174 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 292.3°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#371174
RGBrgb(55, 17, 116)
HSLhsl(263, 74%, 26%)
HSVhsv(263, 85%, 45%)
CMYKcmyk(52.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.80, 40.75, -48.86)
CIE-LCHlch(17.80, 63.62, 309.83°)
OKLaboklab(31.01% 0.0577 -0.1404)
OKLCHoklch(31.01% 0.152 292.3)
XYZxyz(4.9275, 2.4739, 16.7375)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371174 #4E7411
analogous
#111D74 #371174 #681174
triadic
#371174 #743711 #117437
tetradic
#371174 #74111D #4E7411 #117468
square
#371174 #74111D #4E7411 #117468
split-complementary
#371174 #746811 #1D7411
monochromatic
#0D041B #1E093F #371174 #5019A9 #6A21DE

Accessibility & contrast

On white

14.05
#371174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371174
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371174#FFFFFF#000000##FFFFFF
##3711741.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#222F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371174;
/* rgb */ color: rgb(55, 17, 116);
/* oklch */ color: oklch(31.0% 0.152 292.3);
Tailwind
colors: {
  custom: {
    50: '#76559d',
    500: '#371174',
    950: '#000000',
  },
}
SCSS
$custom: #371174;
$custom-light: #76559d;
$custom-dark: #000000;
JSON
{
  "hex": "#371174",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 263.03,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.15177,
    "h": 292.3
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#371174
secondary
#7EAB36
accent
#F137AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371174

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

Preview Lab → · Contrast checker → · Palette generator →

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