#371874#371874

#371874 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.145 H 291.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#371874
RGBrgb(55, 24, 116)
HSLhsl(260, 66%, 27%)
HSVhsv(260, 79%, 45%)
CMYKcmyk(52.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.91, 37.53, -47.03)
CIE-LCHlch(18.91, 60.17, 308.59°)
OKLaboklab(31.79% 0.0523 -0.1351)
OKLCHoklch(31.79% 0.145 291.2)
XYZxyz(5.0537, 2.7262, 16.7795)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371874 #557418
analogous
#182774 #371874 #651874
triadic
#371874 #743718 #187437
tetradic
#371874 #741827 #557418 #187465
square
#371874 #741827 #557418 #187465
split-complementary
#371874 #746518 #277418
monochromatic
#0C0519 #1F0E41 #371874 #4F22A7 #6932D5

Accessibility & contrast

On white

13.59
#371874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#371874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371874
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371874#FFFFFF#000000##FFFFFF
##3718741.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#223145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371874;
/* rgb */ color: rgb(55, 24, 116);
/* oklch */ color: oklch(31.8% 0.145 291.2);
Tailwind
colors: {
  custom: {
    50: '#75599d',
    500: '#371874',
    950: '#000000',
  },
}
SCSS
$custom: #371874;
$custom-light: #75599d;
$custom-dark: #000000;
JSON
{
  "hex": "#371874",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 260.217,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31787,
    "c": 0.14486,
    "h": 291.2
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#371874
secondary
#85A93F
accent
#E93FB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371874

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

Preview Lab → · Contrast checker → · Palette generator →

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