#371966#371966

#371966 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.126 H 295.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#371966
RGBrgb(55, 25, 102)
HSLhsl(263, 61%, 25%)
HSVhsv(263, 75%, 40%)
CMYKcmyk(46.1%, 75.5%, 0%, 60%)
CIE-LABlab(17.77, 32.90, -39.80)
CIE-LCHlch(17.77, 51.63, 309.58°)
OKLaboklab(30.57% 0.055 -0.1139)
OKLCHoklch(30.57% 0.126 295.8)
XYZxyz(4.3208, 2.4667, 12.8163)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371966 #486619
analogous
#192166 #371966 #5E1966
triadic
#371966 #663719 #196637
tetradic
#371966 #661921 #486619 #19665E
square
#371966 #661921 #486619 #19665E
split-complementary
#371966 #665E19 #216619
monochromatic
#0D0619 #1C0D35 #371966 #522597 #6C31C8

Accessibility & contrast

On white

14.06
#371966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371966
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371966#FFFFFF#000000##FFFFFF
##3719661.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#2A2C3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371966;
/* rgb */ color: rgb(55, 25, 102);
/* oklch */ color: oklch(30.6% 0.126 295.8);
Tailwind
colors: {
  custom: {
    50: '#735992',
    500: '#371966',
    950: '#000000',
  },
}
SCSS
$custom: #371966;
$custom-light: #735992;
$custom-dark: #000000;
JSON
{
  "hex": "#371966",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 263.377,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3057,
    "c": 0.12644,
    "h": 295.8
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#371966
secondary
#789C3F
accent
#E444A6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #371966

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

Preview Lab → · Contrast checker → · Palette generator →

#371966 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva