#371766#371766

#371766 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.129 H 296.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#371766
RGBrgb(55, 23, 102)
HSLhsl(264, 63%, 25%)
HSVhsv(264, 77%, 40%)
CMYKcmyk(46.1%, 77.5%, 0%, 60%)
CIE-LABlab(17.39, 33.97, -40.42)
CIE-LCHlch(17.39, 52.80, 310.05°)
OKLaboklab(30.3% 0.0571 -0.1157)
OKLCHoklch(30.3% 0.129 296.3)
XYZxyz(4.2796, 2.3842, 12.8025)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371766 #466617
analogous
#171E66 #371766 #5F1766
triadic
#371766 #663717 #176637
tetradic
#371766 #66171E #466617 #17665F
square
#371766 #66171E #466617 #17665F
split-complementary
#371766 #665F17 #1E6617
monochromatic
#0D0619 #1C0C34 #371766 #522298 #6D2ECA

Accessibility & contrast

On white

14.22
#371766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#371766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371766
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371766#FFFFFF#000000##FFFFFF
##3717661.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371766;
/* rgb */ color: rgb(55, 23, 102);
/* oklch */ color: oklch(30.3% 0.129 296.3);
Tailwind
colors: {
  custom: {
    50: '#735792',
    500: '#371766',
    950: '#000000',
  },
}
SCSS
$custom: #371766;
$custom-light: #735792;
$custom-dark: #000000;
JSON
{
  "hex": "#371766",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 264.304,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.12898,
    "h": 296.3
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#371766
secondary
#769C3C
accent
#E642A4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #371766

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

Preview Lab → · Contrast checker → · Palette generator →

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