#371F7B#371F7B

#371F7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.146 H 287.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#371F7B
RGBrgb(55, 31, 123)
HSLhsl(256, 60%, 30%)
HSVhsv(256, 75%, 48%)
CMYKcmyk(55.3%, 74.8%, 0%, 51.8%)
CIE-LABlab(20.91, 35.91, -48.24)
CIE-LCHlch(20.91, 60.14, 306.67°)
OKLaboklab(33.41% 0.0443 -0.1387)
OKLCHoklch(33.41% 0.146 287.7)
XYZxyz(5.6396, 3.2220, 19.0598)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F7B #637B1F
analogous
#1F357B #371F7B #651F7B
triadic
#371F7B #7B371F #1F7B37
tetradic
#371F7B #7B1F35 #637B1F #1F7B65
square
#371F7B #7B1F35 #637B1F #1F7B65
split-complementary
#371F7B #7B651F #357B1F
monochromatic
#0B0619 #21134A #371F7B #4D2BAC #6944D0

Accessibility & contrast

On white

12.77
#371F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F7B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F7B#FFFFFF#000000##FFFFFF
##371F7B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#1C384B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371f7b;
/* rgb */ color: rgb(55, 31, 123);
/* oklch */ color: oklch(33.4% 0.146 287.7);
Tailwind
colors: {
  custom: {
    50: '#765da2',
    500: '#371f7b',
    950: '#000000',
  },
}
SCSS
$custom: #371f7b;
$custom-light: #765da2;
$custom-dark: #000000;
JSON
{
  "hex": "#371f7b",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 255.652,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33405,
    "c": 0.14557,
    "h": 287.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#371F7B
secondary
#93AE48
accent
#E345BA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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