#371F55#371F55

#371F55 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.095 H 301.4°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#371F55
RGBrgb(55, 31, 85)
HSLhsl(267, 47%, 23%)
HSVhsv(267, 64%, 33%)
CMYKcmyk(35.3%, 63.5%, 0%, 66.7%)
CIE-LABlab(17.68, 24.35, -28.63)
CIE-LCHlch(17.68, 37.58, 310.38°)
OKLaboklab(30.07% 0.0495 -0.081)
OKLCHoklch(30.07% 0.095 301.4)
XYZxyz(3.7048, 2.4481, 8.8699)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F55 #3D551F
analogous
#1F2255 #371F55 #521F55
triadic
#371F55 #55371F #1F5537
tetradic
#371F55 #551F22 #3D551F #1F5552
square
#371F55 #551F22 #3D551F #1F5552
split-complementary
#371F55 #55521F #22551F
monochromatic
#0F0816 #1A0F28 #371F55 #542F82 #7140AF

Accessibility & contrast

On white

14.10
#371F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F55
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F55#FFFFFF#000000##FFFFFF
##371F551.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052B57
Deuteranopia (green-blind)
#102B54
Tritanopia (blue-blind)
#312A36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371f55;
/* rgb */ color: rgb(55, 31, 85);
/* oklch */ color: oklch(30.1% 0.095 301.4);
Tailwind
colors: {
  custom: {
    50: '#705c85',
    500: '#371f55',
    950: '#000000',
  },
}
SCSS
$custom: #371f55;
$custom-light: #705c85;
$custom-dark: #000000;
JSON
{
  "hex": "#371f55",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 266.667,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30071,
    "c": 0.09496,
    "h": 301.4
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#371F55
secondary
#6C8A46
accent
#D6529B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371F55

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

Preview Lab → · Contrast checker → · Palette generator →

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