#371158#371158

#371158 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.120 H 303.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#371158
RGBrgb(55, 17, 88)
HSLhsl(272, 68%, 21%)
HSVhsv(272, 81%, 35%)
CMYKcmyk(37.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.05, 33.10, -34.91)
CIE-LCHlch(15.05, 48.10, 313.48°)
OKLaboklab(28.26% 0.0667 -0.0994)
OKLCHoklch(28.26% 0.12 303.9)
XYZxyz(3.5370, 1.9177, 9.4144)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371158 #325811
analogous
#141158 #371158 #581155
triadic
#371158 #583711 #115837
tetradic
#371158 #581411 #325811 #115558
square
#371158 #581411 #325811 #115558
split-complementary
#371158 #555811 #115814
monochromatic
#10051A #170725 #371158 #571B8B #7725BF

Accessibility & contrast

On white

15.18
#371158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#371158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371158
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371158#FFFFFF#000000##FFFFFF
##3711581.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#302333
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371158;
/* rgb */ color: rgb(55, 17, 88);
/* oklch */ color: oklch(28.3% 0.120 303.9);
Tailwind
colors: {
  custom: {
    50: '#725388',
    500: '#371158',
    950: '#000000',
  },
}
SCSS
$custom: #371158;
$custom-light: #725388;
$custom-dark: #000000;
JSON
{
  "hex": "#371158",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 272.113,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28255,
    "c": 0.11976,
    "h": 303.9
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#371158
secondary
#5F9134
accent
#EA3D8E
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371158

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

Preview Lab → · Contrast checker → · Palette generator →

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