#371B90#371B90

#371B90 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.175 H 283.6°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#371B90
RGBrgb(55, 27, 144)
HSLhsl(254, 68%, 34%)
HSVhsv(254, 81%, 56%)
CMYKcmyk(61.8%, 81.3%, 0%, 43.5%)
CIE-LABlab(22.34, 44.35, -59.10)
CIE-LCHlch(22.34, 73.89, 306.88°)
OKLaboklab(35.05% 0.0413 -0.1704)
OKLCHoklch(35.05% 0.175 283.6)
XYZxyz(7.0000, 3.6092, 26.7079)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B90 #74901B
analogous
#1B3990 #371B90 #711B90
triadic
#371B90 #90371B #1B9037
tetradic
#371B90 #901B39 #74901B #1B9071
square
#371B90 #901B39 #74901B #1B9071
split-complementary
#371B90 #90711B #39901B
monochromatic
#100829 #23115C #371B90 #4B25C4 #6C49DD

Accessibility & contrast

On white

12.20
#371B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B90
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B90#FFFFFF#000000##FFFFFF
##371B901.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371b90;
/* rgb */ color: rgb(55, 27, 144);
/* oklch */ color: oklch(35.1% 0.175 283.6);
Tailwind
colors: {
  custom: {
    50: '#7a5cb2',
    500: '#371b90',
    950: '#000000',
  },
}
SCSS
$custom: #371b90;
$custom-light: #7a5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#371b90",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 254.359,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35051,
    "c": 0.17533,
    "h": 283.6
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#371B90
secondary
#A2BF48
accent
#EB3DC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371B90

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

Preview Lab → · Contrast checker → · Palette generator →

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