#371868#371868

#371868 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.130 H 295.3°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#371868
RGBrgb(55, 24, 104)
HSLhsl(263, 63%, 25%)
HSVhsv(263, 77%, 41%)
CMYKcmyk(47.1%, 76.9%, 0%, 59.2%)
CIE-LABlab(17.76, 34.02, -41.12)
CIE-LCHlch(17.76, 53.37, 309.60°)
OKLaboklab(30.62% 0.0556 -0.1177)
OKLCHoklch(30.62% 0.13 295.3)
XYZxyz(4.4002, 2.4649, 13.3379)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371868 #496818
analogous
#182168 #371868 #5F1868
triadic
#371868 #683718 #186837
tetradic
#371868 #681821 #496818 #18685F
square
#371868 #681821 #496818 #18685F
split-complementary
#371868 #685F18 #216818
monochromatic
#0D0619 #1D0D36 #371868 #51239A #6C2FCB

Accessibility & contrast

On white

14.07
#371868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371868
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371868#FFFFFF#000000##FFFFFF
##3718681.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#292D3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371868;
/* rgb */ color: rgb(55, 24, 104);
/* oklch */ color: oklch(30.6% 0.130 295.3);
Tailwind
colors: {
  custom: {
    50: '#735894',
    500: '#371868',
    950: '#000000',
  },
}
SCSS
$custom: #371868;
$custom-light: #735894;
$custom-dark: #000000;
JSON
{
  "hex": "#371868",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 263.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30621,
    "c": 0.1302,
    "h": 295.3
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#371868
secondary
#799E3E
accent
#E642A6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #371868

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

Preview Lab → · Contrast checker → · Palette generator →

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