#371F75#371F75

#371F75 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.138 H 289.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#371F75
RGBrgb(55, 31, 117)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 74%, 46%)
CMYKcmyk(53%, 73.5%, 0%, 54.1%)
CIE-LABlab(20.35, 34.06, -45.33)
CIE-LCHlch(20.35, 56.70, 306.92°)
OKLaboklab(32.83% 0.0456 -0.1301)
OKLCHoklch(32.83% 0.138 289.3)
XYZxyz(5.2755, 3.0763, 17.1420)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F75 #5D751F
analogous
#1F3275 #371F75 #621F75
triadic
#371F75 #75371F #1F7537
tetradic
#371F75 #751F32 #5D751F #1F7562
square
#371F75 #751F32 #5D751F #1F7562
split-complementary
#371F75 #75621F #32751F
monochromatic
#0B0618 #201245 #371F75 #4E2CA5 #6842CD

Accessibility & contrast

On white

13.00
#371F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F75
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F75#FFFFFF#000000##FFFFFF
##371F751.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#213547
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371f75;
/* rgb */ color: rgb(55, 31, 117);
/* oklch */ color: oklch(32.8% 0.138 289.3);
Tailwind
colors: {
  custom: {
    50: '#755d9e',
    500: '#371f75',
    950: '#000000',
  },
}
SCSS
$custom: #371f75;
$custom-light: #755d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#371f75",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 256.744,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3283,
    "c": 0.13789,
    "h": 289.3
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#371F75
secondary
#8DA947
accent
#E146B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F75

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

Preview Lab → · Contrast checker → · Palette generator →

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