#371F74#371F74

#371F74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.137 H 289.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#371F74
RGBrgb(55, 31, 116)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 73%, 45%)
CMYKcmyk(52.6%, 73.3%, 0%, 54.5%)
CIE-LABlab(20.25, 33.75, -44.83)
CIE-LCHlch(20.25, 56.12, 306.97°)
OKLaboklab(32.74% 0.0458 -0.1287)
OKLCHoklch(32.74% 0.137 289.6)
XYZxyz(5.2170, 3.0529, 16.8340)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F74 #5C741F
analogous
#1F3274 #371F74 #621F74
triadic
#371F74 #74371F #1F7437
tetradic
#371F74 #741F32 #5C741F #1F7462
square
#371F74 #741F32 #5C741F #1F7462
split-complementary
#371F74 #74621F #32741F
monochromatic
#0B0618 #201244 #371F74 #4E2CA4 #6841CC

Accessibility & contrast

On white

13.04
#371F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F74
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F74#FFFFFF#000000##FFFFFF
##371F741.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#223547
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371f74;
/* rgb */ color: rgb(55, 31, 116);
/* oklch */ color: oklch(32.7% 0.137 289.6);
Tailwind
colors: {
  custom: {
    50: '#755d9d',
    500: '#371f74',
    950: '#000000',
  },
}
SCSS
$custom: #371f74;
$custom-light: #755d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#371f74",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 256.941,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32736,
    "c": 0.13661,
    "h": 289.6
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#371F74
secondary
#8CA847
accent
#E147B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F74

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

Preview Lab → · Contrast checker → · Palette generator →

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