#371A8F#371A8F

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

Color values

HEX#371A8F
RGBrgb(55, 26, 143)
HSLhsl(255, 69%, 33%)
HSVhsv(255, 82%, 56%)
CMYKcmyk(61.5%, 81.8%, 0%, 43.9%)
CIE-LABlab(22.07, 44.52, -58.92)
CIE-LCHlch(22.07, 73.85, 307.07°)
OKLaboklab(34.83% 0.0423 -0.1699)
OKLCHoklch(34.83% 0.175 284)
XYZxyz(6.9013, 3.5337, 26.2997)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A8F #728F1A
analogous
#1A378F #371A8F #711A8F
triadic
#371A8F #8F371A #1A8F37
tetradic
#371A8F #8F1A37 #728F1A #1A8F71
square
#371A8F #8F1A37 #728F1A #1A8F71
split-complementary
#371A8F #8F711A #378F1A
monochromatic
#0F0727 #23115B #371A8F #4B23C3 #6C46DD

Accessibility & contrast

On white

12.30
#371A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A8F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A8F#FFFFFF#000000##FFFFFF
##371A8F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371a8f;
/* rgb */ color: rgb(55, 26, 143);
/* oklch */ color: oklch(34.8% 0.175 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bb1',
    500: '#371a8f',
    950: '#000000',
  },
}
SCSS
$custom: #371a8f;
$custom-light: #7a5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#371a8f",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 254.872,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.17505,
    "h": 284
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#371A8F
secondary
#A1BF46
accent
#EC3CC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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