#371B8D#371B8D

#371B8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.172 H 284.3°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#371B8D
RGBrgb(55, 27, 141)
HSLhsl(255, 68%, 33%)
HSVhsv(255, 81%, 55%)
CMYKcmyk(61%, 80.9%, 0%, 44.7%)
CIE-LABlab(22.01, 43.46, -57.77)
CIE-LCHlch(22.01, 72.29, 306.95°)
OKLaboklab(34.73% 0.0423 -0.1665)
OKLCHoklch(34.73% 0.172 284.3)
XYZxyz(6.7737, 3.5187, 25.5164)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B8D #718D1B
analogous
#1B388D #371B8D #701B8D
triadic
#371B8D #8D371B #1B8D37
tetradic
#371B8D #8D1B38 #718D1B #1B8D70
square
#371B8D #8D1B38 #718D1B #1B8D70
split-complementary
#371B8D #8D701B #388D1B
monochromatic
#0F0726 #23115A #371B8D #4B25C0 #6B47DC

Accessibility & contrast

On white

12.33
#371B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B8D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B8D#FFFFFF#000000##FFFFFF
##371B8D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371b8d;
/* rgb */ color: rgb(55, 27, 141);
/* oklch */ color: oklch(34.7% 0.172 284.3);
Tailwind
colors: {
  custom: {
    50: '#795caf',
    500: '#371b8d',
    950: '#000000',
  },
}
SCSS
$custom: #371b8d;
$custom-light: #795caf;
$custom-dark: #000000;
JSON
{
  "hex": "#371b8d",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 254.737,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.1718,
    "h": 284.3
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#371B8D
secondary
#A0BD46
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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