#371A7F#371A7F

#371A7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.156 H 287.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#371A7F
RGBrgb(55, 26, 127)
HSLhsl(257, 66%, 30%)
HSVhsv(257, 80%, 50%)
CMYKcmyk(56.7%, 79.5%, 0%, 50.2%)
CIE-LABlab(20.37, 39.78, -51.66)
CIE-LCHlch(20.37, 65.21, 307.59°)
OKLaboklab(33.15% 0.0474 -0.1487)
OKLCHoklch(33.15% 0.156 287.7)
XYZxyz(5.7746, 3.0830, 20.3654)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A7F #627F1A
analogous
#1A2F7F #371A7F #6A1A7F
triadic
#371A7F #7F371A #1A7F37
tetradic
#371A7F #7F1A2F #627F1A #1A7F6A
square
#371A7F #7F1A2F #627F1A #1A7F6A
split-complementary
#371A7F #7F6A1A #2F7F1A
monochromatic
#0B0519 #21104C #371A7F #4D24B2 #693CD7

Accessibility & contrast

On white

12.99
#371A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A7F
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A7F#FFFFFF#000000##FFFFFF
##371A7F1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#18374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371a7f;
/* rgb */ color: rgb(55, 26, 127);
/* oklch */ color: oklch(33.1% 0.156 287.7);
Tailwind
colors: {
  custom: {
    50: '#775aa5',
    500: '#371a7f',
    950: '#000000',
  },
}
SCSS
$custom: #371a7f;
$custom-light: #775aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#371a7f",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 257.228,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33147,
    "c": 0.15604,
    "h": 287.7
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#371A7F
secondary
#92B342
accent
#E93FB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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