#371970#371970

#371970 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.139 H 292.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#371970
RGBrgb(55, 25, 112)
HSLhsl(261, 64%, 27%)
HSVhsv(261, 78%, 44%)
CMYKcmyk(50.9%, 77.7%, 0%, 56.1%)
CIE-LABlab(18.70, 35.84, -44.79)
CIE-LCHlch(18.70, 57.37, 308.66°)
OKLaboklab(31.52% 0.0525 -0.1285)
OKLCHoklch(31.52% 0.139 292.2)
XYZxyz(4.8470, 2.6772, 15.5875)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371970 #527019
analogous
#192670 #371970 #631970
triadic
#371970 #703719 #197037
tetradic
#371970 #701926 #527019 #197063
square
#371970 #701926 #527019 #197063
split-complementary
#371970 #706319 #267019
monochromatic
#0C0619 #1E0E3E #371970 #5024A2 #6932D1

Accessibility & contrast

On white

13.68
#371970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#371970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371970
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371970#FFFFFF#000000##FFFFFF
##3719701.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#253043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371970;
/* rgb */ color: rgb(55, 25, 112);
/* oklch */ color: oklch(31.5% 0.139 292.2);
Tailwind
colors: {
  custom: {
    50: '#74599a',
    500: '#371970',
    950: '#000000',
  },
}
SCSS
$custom: #371970;
$custom-light: #74599a;
$custom-dark: #000000;
JSON
{
  "hex": "#371970",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 260.69,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3152,
    "c": 0.13885,
    "h": 292.2
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#371970
secondary
#82A540
accent
#E741AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371970

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

Preview Lab → · Contrast checker → · Palette generator →

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