#371A66#371A66

#371A66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.125 H 295.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#371A66
RGBrgb(55, 26, 102)
HSLhsl(263, 59%, 25%)
HSVhsv(263, 75%, 40%)
CMYKcmyk(46.1%, 74.5%, 0%, 60%)
CIE-LABlab(17.96, 32.35, -39.47)
CIE-LCHlch(17.96, 51.04, 309.33°)
OKLaboklab(30.71% 0.0539 -0.1129)
OKLCHoklch(30.71% 0.125 295.5)
XYZxyz(4.3426, 2.5102, 12.8235)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A66 #49661A
analogous
#1A2366 #371A66 #5D1A66
triadic
#371A66 #66371A #1A6637
tetradic
#371A66 #661A23 #49661A #1A665D
square
#371A66 #661A23 #49661A #1A665D
split-complementary
#371A66 #665D1A #23661A
monochromatic
#0D0618 #1D0E35 #371A66 #512697 #6C33C8

Accessibility & contrast

On white

13.98
#371A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#371A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A66
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A66#FFFFFF#000000##FFFFFF
##371A661.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#2A2D3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371a66;
/* rgb */ color: rgb(55, 26, 102);
/* oklch */ color: oklch(30.7% 0.125 295.5);
Tailwind
colors: {
  custom: {
    50: '#735992',
    500: '#371a66',
    950: '#000000',
  },
}
SCSS
$custom: #371a66;
$custom-light: #735992;
$custom-dark: #000000;
JSON
{
  "hex": "#371a66",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 262.895,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30711,
    "c": 0.12513,
    "h": 295.5
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#371A66
secondary
#799C40
accent
#E345A7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371A66

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

Preview Lab → · Contrast checker → · Palette generator →

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