#371C62#371C62

#371C62 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.117 H 296.5°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#371C62
RGBrgb(55, 28, 98)
HSLhsl(263, 56%, 25%)
HSVhsv(263, 71%, 38%)
CMYKcmyk(43.9%, 71.4%, 0%, 61.6%)
CIE-LABlab(18.03, 30.02, -36.73)
CIE-LCHlch(18.03, 47.44, 309.26°)
OKLaboklab(30.65% 0.0524 -0.1049)
OKLCHoklch(30.65% 0.117 296.5)
XYZxyz(4.1948, 2.5245, 11.8192)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C62 #47621C
analogous
#1C2462 #371C62 #5A1C62
triadic
#371C62 #62371C #1C6237
tetradic
#371C62 #621C24 #47621C #1C625A
square
#371C62 #621C24 #47621C #1C625A
split-complementary
#371C62 #625A1C #24621C
monochromatic
#0D0718 #1C0E32 #371C62 #522A92 #6C37C1

Accessibility & contrast

On white

13.95
#371C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#371C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C62
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C62#FFFFFF#000000##FFFFFF
##371C621.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371c62;
/* rgb */ color: rgb(55, 28, 98);
/* oklch */ color: oklch(30.6% 0.117 296.5);
Tailwind
colors: {
  custom: {
    50: '#725a8f',
    500: '#371c62',
    950: '#000000',
  },
}
SCSS
$custom: #371c62;
$custom-light: #725a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#371c62",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 263.143,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30648,
    "c": 0.11722,
    "h": 296.5
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#371C62
secondary
#779743
accent
#DF49A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371C62

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

Preview Lab → · Contrast checker → · Palette generator →

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