#371B8E#371B8E

#371B8E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.173 H 284.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#371B8E
RGBrgb(55, 27, 142)
HSLhsl(255, 68%, 33%)
HSVhsv(255, 81%, 56%)
CMYKcmyk(61.3%, 81%, 0%, 44.3%)
CIE-LABlab(22.12, 43.75, -58.21)
CIE-LCHlch(22.12, 72.82, 306.93°)
OKLaboklab(34.84% 0.042 -0.1678)
OKLCHoklch(34.84% 0.173 284)
XYZxyz(6.8485, 3.5486, 25.9100)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B8E #728E1B
analogous
#1B388E #371B8E #701B8E
triadic
#371B8E #8E371B #1B8E37
tetradic
#371B8E #8E1B38 #728E1B #1B8E70
square
#371B8E #8E1B38 #728E1B #1B8E70
split-complementary
#371B8E #8E701B #388E1B
monochromatic
#0F0727 #23115B #371B8E #4B25C1 #6C47DC

Accessibility & contrast

On white

12.28
#371B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B8E
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B8E#FFFFFF#000000##FFFFFF
##371B8E1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371b8e;
/* rgb */ color: rgb(55, 27, 142);
/* oklch */ color: oklch(34.8% 0.173 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a5cb0',
    500: '#371b8e',
    950: '#000000',
  },
}
SCSS
$custom: #371b8e;
$custom-light: #7a5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#371b8e",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 254.609,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.17298,
    "h": 284
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #371B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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