#371A7C#371A7C

#371A7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.152 H 288.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#371A7C
RGBrgb(55, 26, 124)
HSLhsl(258, 65%, 29%)
HSVhsv(258, 79%, 49%)
CMYKcmyk(55.6%, 79%, 0%, 51.4%)
CIE-LABlab(20.07, 38.89, -50.26)
CIE-LCHlch(20.07, 63.55, 307.73°)
OKLaboklab(32.84% 0.0483 -0.1446)
OKLCHoklch(32.84% 0.152 288.5)
XYZxyz(5.5820, 3.0060, 19.3510)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A7C #5F7C1A
analogous
#1A2E7C #371A7C #681A7C
triadic
#371A7C #7C371A #1A7C37
tetradic
#371A7C #7C1A2E #5F7C1A #1A7C68
square
#371A7C #7C1A2E #5F7C1A #1A7C68
split-complementary
#371A7C #7C681A #2E7C1A
monochromatic
#0B0519 #210F49 #371A7C #4D25AF #693BD6

Accessibility & contrast

On white

13.12
#371A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A7C
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A7C#FFFFFF#000000##FFFFFF
##371A7C1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#1B364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371a7c;
/* rgb */ color: rgb(55, 26, 124);
/* oklch */ color: oklch(32.8% 0.152 288.5);
Tailwind
colors: {
  custom: {
    50: '#765aa3',
    500: '#371a7c',
    950: '#000000',
  },
}
SCSS
$custom: #371a7c;
$custom-light: #765aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#371a7c",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 257.755,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32841,
    "c": 0.15241,
    "h": 288.5
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#371A7C
secondary
#8FB042
accent
#E840B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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