#371958#371958

#371958 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.109 H 301.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#371958
RGBrgb(55, 25, 88)
HSLhsl(269, 56%, 22%)
HSVhsv(269, 72%, 35%)
CMYKcmyk(37.5%, 71.6%, 0%, 65.5%)
CIE-LABlab(16.56, 28.86, -32.45)
CIE-LCHlch(16.56, 43.42, 311.65°)
OKLaboklab(29.33% 0.0575 -0.0923)
OKLCHoklch(29.33% 0.109 301.9)
XYZxyz(3.6842, 2.2121, 9.4635)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371958 #3A5819
analogous
#191B58 #371958 #561958
triadic
#371958 #583719 #195837
tetradic
#371958 #58191B #3A5819 #195856
square
#371958 #58191B #3A5819 #195856
split-complementary
#371958 #585619 #1B5819
monochromatic
#0F0718 #190B28 #371958 #552788 #7334B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371958#FFFFFF#000000##FFFFFF
##3719581.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)
#00295A
Deuteranopia (green-blind)
#012957
Tritanopia (blue-blind)
#302736
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371958;
/* rgb */ color: rgb(55, 25, 88);
/* oklch */ color: oklch(29.3% 0.109 301.9);
Tailwind
colors: {
  custom: {
    50: '#715888',
    500: '#371958',
    950: '#000000',
  },
}
SCSS
$custom: #371958;
$custom-light: #715888;
$custom-dark: #000000;
JSON
{
  "hex": "#371958",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 268.571,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29333,
    "c": 0.10868,
    "h": 301.9
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#371958
secondary
#688E3E
accent
#DF4997
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371958

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

Preview Lab → · Contrast checker → · Palette generator →

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