#371F7E#371F7E

#371F7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.149 H 287.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#371F7E
RGBrgb(55, 31, 126)
HSLhsl(255, 61%, 31%)
HSVhsv(255, 75%, 49%)
CMYKcmyk(56.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(21.20, 36.84, -49.67)
CIE-LCHlch(21.20, 61.84, 306.57°)
OKLaboklab(33.7% 0.0436 -0.1429)
OKLCHoklch(33.7% 0.149 287)
XYZxyz(5.8303, 3.2982, 20.0640)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F7E #667E1F
analogous
#1F367E #371F7E #661F7E
triadic
#371F7E #7E371F #1F7E37
tetradic
#371F7E #7E1F36 #667E1F #1F7E66
square
#371F7E #7E1F36 #667E1F #1F7E66
split-complementary
#371F7E #7E661F #367E1F
monochromatic
#0C071C #22134D #371F7E #4C2BAF #6946D1

Accessibility & contrast

On white

12.65
#371F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F7E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F7E#FFFFFF#000000##FFFFFF
##371F7E1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#19394C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371f7e;
/* rgb */ color: rgb(55, 31, 126);
/* oklch */ color: oklch(33.7% 0.149 287.0);
Tailwind
colors: {
  custom: {
    50: '#765da4',
    500: '#371f7e',
    950: '#000000',
  },
}
SCSS
$custom: #371f7e;
$custom-light: #765da4;
$custom-dark: #000000;
JSON
{
  "hex": "#371f7e",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 255.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33699,
    "c": 0.14937,
    "h": 287
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#371F7E
secondary
#96B148
accent
#E444BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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