#371B68#371B68

#371B68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.126 H 294.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#371B68
RGBrgb(55, 27, 104)
HSLhsl(262, 59%, 26%)
HSVhsv(262, 74%, 41%)
CMYKcmyk(47.1%, 74%, 0%, 59.2%)
CIE-LABlab(18.34, 32.38, -40.17)
CIE-LCHlch(18.34, 51.59, 308.87°)
OKLaboklab(31.04% 0.0524 -0.115)
OKLCHoklch(31.04% 0.126 294.5)
XYZxyz(4.4655, 2.5954, 13.3597)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B68 #4C681B
analogous
#1B2568 #371B68 #5D1B68
triadic
#371B68 #68371B #1B6837
tetradic
#371B68 #681B25 #4C681B #1B685D
square
#371B68 #681B25 #4C681B #1B685D
split-complementary
#371B68 #685D1B #25681B
monochromatic
#0D0618 #1D0E37 #371B68 #512899 #6A34C9

Accessibility & contrast

On white

13.82
#371B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#371B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B68
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B68#FFFFFF#000000##FFFFFF
##371B681.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#292E3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371b68;
/* rgb */ color: rgb(55, 27, 104);
/* oklch */ color: oklch(31.0% 0.126 294.5);
Tailwind
colors: {
  custom: {
    50: '#735a94',
    500: '#371b68',
    950: '#000000',
  },
}
SCSS
$custom: #371b68;
$custom-light: #735a94;
$custom-dark: #000000;
JSON
{
  "hex": "#371b68",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 261.818,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31037,
    "c": 0.12635,
    "h": 294.5
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#371B68
secondary
#7C9D42
accent
#E246A9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #371B68

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

Preview Lab → · Contrast checker → · Palette generator →

#371B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva