#371B8F#371B8F

#371B8F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.174 H 283.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#371B8F
RGBrgb(55, 27, 143)
HSLhsl(254, 68%, 33%)
HSVhsv(254, 81%, 56%)
CMYKcmyk(61.5%, 81.1%, 0%, 43.9%)
CIE-LABlab(22.23, 44.05, -58.66)
CIE-LCHlch(22.23, 73.36, 306.90°)
OKLaboklab(34.94% 0.0417 -0.1691)
OKLCHoklch(34.94% 0.174 283.8)
XYZxyz(6.9239, 3.5788, 26.3072)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B8F #738F1B
analogous
#1B398F #371B8F #711B8F
triadic
#371B8F #8F371B #1B8F37
tetradic
#371B8F #8F1B39 #738F1B #1B8F71
square
#371B8F #8F1B39 #738F1B #1B8F71
split-complementary
#371B8F #8F711B #398F1B
monochromatic
#0F0828 #23115C #371B8F #4B25C2 #6C48DC

Accessibility & contrast

On white

12.24
#371B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B8F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B8F#FFFFFF#000000##FFFFFF
##371B8F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371b8f;
/* rgb */ color: rgb(55, 27, 143);
/* oklch */ color: oklch(34.9% 0.174 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cb1',
    500: '#371b8f',
    950: '#000000',
  },
}
SCSS
$custom: #371b8f;
$custom-light: #7a5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#371b8f",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 254.483,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.17415,
    "h": 283.8
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#371B8F
secondary
#A2BE48
accent
#EB3DC1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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