#371B58#371B58

#371B58 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.106 H 301.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#371B58
RGBrgb(55, 27, 88)
HSLhsl(268, 53%, 23%)
HSVhsv(268, 69%, 35%)
CMYKcmyk(37.5%, 69.3%, 0%, 65.5%)
CIE-LABlab(16.99, 27.68, -31.75)
CIE-LCHlch(16.99, 42.13, 311.08°)
OKLaboklab(29.64% 0.0549 -0.0902)
OKLCHoklch(29.64% 0.106 301.3)
XYZxyz(3.7285, 2.3007, 9.4783)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B58 #3C581B
analogous
#1B1E58 #371B58 #551B58
triadic
#371B58 #58371B #1B5837
tetradic
#371B58 #581B1E #3C581B #1B5855
square
#371B58 #581B1E #3C581B #1B5855
split-complementary
#371B58 #58551B #1E581B
monochromatic
#0F0717 #1A0D29 #371B58 #542987 #7238B6

Accessibility & contrast

On white

14.38
#371B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#371B58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B58
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B58#FFFFFF#000000##FFFFFF
##371B581.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#042A57
Tritanopia (blue-blind)
#302836
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #371b58;
/* rgb */ color: rgb(55, 27, 88);
/* oklch */ color: oklch(29.6% 0.106 301.3);
Tailwind
colors: {
  custom: {
    50: '#715988',
    500: '#371b58',
    950: '#000000',
  },
}
SCSS
$custom: #371b58;
$custom-light: #715988;
$custom-dark: #000000;
JSON
{
  "hex": "#371b58",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 267.541,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29642,
    "c": 0.1056,
    "h": 301.3
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#371B58
secondary
#6B8E41
accent
#DC4B9A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371B58

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

Preview Lab → · Contrast checker → · Palette generator →

#371B58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva