#371862#371862

#371862 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.123 H 297.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#371862
RGBrgb(55, 24, 98)
HSLhsl(265, 61%, 24%)
HSVhsv(265, 76%, 38%)
CMYKcmyk(43.9%, 75.5%, 0%, 61.6%)
CIE-LABlab(17.21, 32.28, -38.06)
CIE-LCHlch(17.21, 49.91, 310.30°)
OKLaboklab(30.07% 0.0569 -0.1088)
OKLCHoklch(30.07% 0.123 297.6)
XYZxyz(4.1062, 2.3473, 11.7896)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371862 #436218
analogous
#181E62 #371862 #5C1862
triadic
#371862 #623718 #186237
tetradic
#371862 #62181E #436218 #18625C
square
#371862 #62181E #436218 #18625C
split-complementary
#371862 #625C18 #1E6218
monochromatic
#0E0619 #1B0C31 #371862 #532493 #6E30C4

Accessibility & contrast

On white

14.29
#371862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#371862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371862
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371862#FFFFFF#000000##FFFFFF
##3718621.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#2C2A3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #371862;
/* rgb */ color: rgb(55, 24, 98);
/* oklch */ color: oklch(30.1% 0.123 297.6);
Tailwind
colors: {
  custom: {
    50: '#72588f',
    500: '#371862',
    950: '#000000',
  },
}
SCSS
$custom: #371862;
$custom-light: #72588f;
$custom-dark: #000000;
JSON
{
  "hex": "#371862",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 265.135,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30065,
    "c": 0.12276,
    "h": 297.6
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#371862
secondary
#72983E
accent
#E444A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371862

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

Preview Lab → · Contrast checker → · Palette generator →

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