#371F89#371F89

#371F89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.163 H 284.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#371F89
RGBrgb(55, 31, 137)
HSLhsl(254, 63%, 33%)
HSVhsv(254, 77%, 54%)
CMYKcmyk(59.9%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.29, 40.24, -54.80)
CIE-LCHlch(22.29, 67.99, 306.29°)
OKLaboklab(34.8% 0.0407 -0.1579)
OKLCHoklch(34.8% 0.163 284.5)
XYZxyz(6.5795, 3.5979, 24.0098)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F89 #71891F
analogous
#1F3C89 #371F89 #6C1F89
triadic
#371F89 #89371F #1F8937
tetradic
#371F89 #891F3C #71891F #1F896C
square
#371F89 #891F3C #71891F #1F896C
split-complementary
#371F89 #896C1F #3C891F
monochromatic
#0F0825 #231457 #371F89 #4B2ABB #6B4CD6

Accessibility & contrast

On white

12.21
#371F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#371F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F89
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F89#FFFFFF#000000##FFFFFF
##371F891.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#073D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371f89;
/* rgb */ color: rgb(55, 31, 137);
/* oklch */ color: oklch(34.8% 0.163 284.5);
Tailwind
colors: {
  custom: {
    50: '#785eac',
    500: '#371f89',
    950: '#000000',
  },
}
SCSS
$custom: #371f89;
$custom-light: #785eac;
$custom-dark: #000000;
JSON
{
  "hex": "#371f89",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 253.585,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34802,
    "c": 0.16306,
    "h": 284.5
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#371F89
secondary
#A0B94B
accent
#E642C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F89

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

Preview Lab → · Contrast checker → · Palette generator →

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