#371B62#371B62

#371B62 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.119 H 296.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#371B62
RGBrgb(55, 27, 98)
HSLhsl(264, 57%, 25%)
HSVhsv(264, 72%, 38%)
CMYKcmyk(43.9%, 72.4%, 0%, 61.6%)
CIE-LABlab(17.82, 30.60, -37.08)
CIE-LCHlch(17.82, 48.07, 309.53°)
OKLaboklab(30.5% 0.0535 -0.1059)
OKLCHoklch(30.5% 0.119 296.8)
XYZxyz(4.1715, 2.4779, 11.8114)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B62 #46621B
analogous
#1B2362 #371B62 #5B1B62
triadic
#371B62 #62371B #1B6237
tetradic
#371B62 #621B23 #46621B #1B625B
square
#371B62 #621B23 #46621B #1B625B
split-complementary
#371B62 #625B1B #23621B
monochromatic
#0D0718 #1C0E32 #371B62 #522892 #6D35C2

Accessibility & contrast

On white

14.04
#371B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#371B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B62
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B62#FFFFFF#000000##FFFFFF
##371B621.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#2C2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371b62;
/* rgb */ color: rgb(55, 27, 98);
/* oklch */ color: oklch(30.5% 0.119 296.8);
Tailwind
colors: {
  custom: {
    50: '#725a8f',
    500: '#371b62',
    950: '#000000',
  },
}
SCSS
$custom: #371b62;
$custom-light: #725a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#371b62",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 263.662,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30497,
    "c": 0.11865,
    "h": 296.8
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#371B62
secondary
#769841
accent
#E048A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371B62

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

Preview Lab → · Contrast checker → · Palette generator →

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