#371768#371768

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

Color values

HEX#371768
RGBrgb(55, 23, 104)
HSLhsl(264, 64%, 25%)
HSVhsv(264, 78%, 41%)
CMYKcmyk(47.1%, 77.9%, 0%, 59.2%)
CIE-LABlab(17.57, 34.55, -41.43)
CIE-LCHlch(17.57, 53.94, 309.83°)
OKLaboklab(30.49% 0.0566 -0.1186)
OKLCHoklch(30.49% 0.131 295.5)
XYZxyz(4.3800, 2.4244, 13.3312)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371768 #486817
analogous
#171F68 #371768 #601768
triadic
#371768 #683717 #176837
tetradic
#371768 #68171F #486817 #176860
square
#371768 #68171F #486817 #176860
split-complementary
#371768 #686017 #1F6817
monochromatic
#0D0619 #1C0C36 #371768 #52229A #6C2DCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371768#FFFFFF#000000##FFFFFF
##3717681.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#292C3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371768;
/* rgb */ color: rgb(55, 23, 104);
/* oklch */ color: oklch(30.5% 0.131 295.5);
Tailwind
colors: {
  custom: {
    50: '#735794',
    500: '#371768',
    950: '#000000',
  },
}
SCSS
$custom: #371768;
$custom-light: #735794;
$custom-dark: #000000;
JSON
{
  "hex": "#371768",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 263.704,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3049,
    "c": 0.13143,
    "h": 295.5
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#371768
secondary
#789E3D
accent
#E741A5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #371768

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

Preview Lab → · Contrast checker → · Palette generator →

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