#371672#371672

#371672 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.145 H 292.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#371672
RGBrgb(55, 22, 114)
HSLhsl(262, 68%, 27%)
HSVhsv(262, 81%, 45%)
CMYKcmyk(51.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(18.37, 37.94, -46.63)
CIE-LCHlch(18.37, 60.12, 309.13°)
OKLaboklab(31.35% 0.0546 -0.1339)
OKLCHoklch(31.35% 0.145 292.2)
XYZxyz(4.8989, 2.6008, 16.1602)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371672 #517216
analogous
#162372 #371672 #651672
triadic
#371672 #723716 #167237
tetradic
#371672 #721623 #517216 #167265
square
#371672 #721623 #517216 #167265
split-complementary
#371672 #726516 #237216
monochromatic
#0C051A #1E0C3F #371672 #5020A5 #692CD6

Accessibility & contrast

On white

13.81
#371672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#371672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371672
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371672#FFFFFF#000000##FFFFFF
##3716721.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#243043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371672;
/* rgb */ color: rgb(55, 22, 114);
/* oklch */ color: oklch(31.3% 0.145 292.2);
Tailwind
colors: {
  custom: {
    50: '#75589b',
    500: '#371672',
    950: '#000000',
  },
}
SCSS
$custom: #371672;
$custom-light: #75589b;
$custom-dark: #000000;
JSON
{
  "hex": "#371672",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 261.522,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31346,
    "c": 0.14461,
    "h": 292.2
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#371672
secondary
#81A83C
accent
#EB3DAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371672

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

Preview Lab → · Contrast checker → · Palette generator →

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