#371866#371866

#371866 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.128 H 296.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#371866
RGBrgb(55, 24, 102)
HSLhsl(264, 62%, 25%)
HSVhsv(264, 76%, 40%)
CMYKcmyk(46.1%, 76.5%, 0%, 60%)
CIE-LABlab(17.57, 33.44, -40.11)
CIE-LCHlch(17.57, 52.22, 309.82°)
OKLaboklab(30.43% 0.056 -0.1148)
OKLCHoklch(30.43% 0.128 296)
XYZxyz(4.2998, 2.4247, 12.8093)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371866 #476618
analogous
#182066 #371866 #5E1866
triadic
#371866 #663718 #186637
tetradic
#371866 #661820 #476618 #18665E
square
#371866 #661820 #476618 #18665E
split-complementary
#371866 #665E18 #206618
monochromatic
#0D0619 #1C0C34 #371866 #522498 #6C2FC9

Accessibility & contrast

On white

14.14
#371866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371866
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371866#FFFFFF#000000##FFFFFF
##3718661.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.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: #371866;
/* rgb */ color: rgb(55, 24, 102);
/* oklch */ color: oklch(30.4% 0.128 296.0);
Tailwind
colors: {
  custom: {
    50: '#735892',
    500: '#371866',
    950: '#000000',
  },
}
SCSS
$custom: #371866;
$custom-light: #735892;
$custom-dark: #000000;
JSON
{
  "hex": "#371866",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 263.846,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30434,
    "c": 0.12773,
    "h": 296
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#371866
secondary
#779C3E
accent
#E543A5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #371866

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

Preview Lab → · Contrast checker → · Palette generator →

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