#371F80#371F80

#371F80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.152 H 286.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#371F80
RGBrgb(55, 31, 128)
HSLhsl(255, 61%, 31%)
HSVhsv(255, 76%, 50%)
CMYKcmyk(57%, 75.8%, 0%, 49.8%)
CIE-LABlab(21.40, 37.46, -50.62)
CIE-LCHlch(21.40, 62.97, 306.50°)
OKLaboklab(33.9% 0.0431 -0.1456)
OKLCHoklch(33.9% 0.152 286.5)
XYZxyz(5.9607, 3.3504, 20.7505)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F80 #68801F
analogous
#1F3780 #371F80 #671F80
triadic
#371F80 #80371F #1F8037
tetradic
#371F80 #801F37 #68801F #1F8067
square
#371F80 #801F37 #68801F #1F8067
split-complementary
#371F80 #80671F #37801F
monochromatic
#0D071D #22134F #371F80 #4C2BB1 #6947D2

Accessibility & contrast

On white

12.57
#371F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F80
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F80#FFFFFF#000000##FFFFFF
##371F801.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#173A4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371f80;
/* rgb */ color: rgb(55, 31, 128);
/* oklch */ color: oklch(33.9% 0.152 286.5);
Tailwind
colors: {
  custom: {
    50: '#775da6',
    500: '#371f80',
    950: '#000000',
  },
}
SCSS
$custom: #371f80;
$custom-light: #775da6;
$custom-dark: #000000;
JSON
{
  "hex": "#371f80",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 254.845,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.15188,
    "h": 286.5
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#371F80
secondary
#98B348
accent
#E444BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F80

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

Preview Lab → · Contrast checker → · Palette generator →

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