#371254#371254

#371254 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.114 H 305.8°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#371254
RGBrgb(55, 18, 84)
HSLhsl(274, 65%, 20%)
HSVhsv(274, 79%, 33%)
CMYKcmyk(34.5%, 78.6%, 0%, 67.1%)
CIE-LABlab(14.87, 31.54, -32.49)
CIE-LCHlch(14.87, 45.28, 314.16°)
OKLaboklab(28.02% 0.0666 -0.0923)
OKLCHoklch(28.02% 0.114 305.8)
XYZxyz(3.3917, 1.8850, 8.5709)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371254 #2F5412
analogous
#161254 #371254 #541250
triadic
#371254 #543712 #125437
tetradic
#371254 #541612 #2F5412 #125054
square
#371254 #541612 #2F5412 #125054
split-complementary
#371254 #505412 #125416
monochromatic
#100519 #160722 #371254 #581D86 #7928B9

Accessibility & contrast

On white

15.25
#371254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#371254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371254
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371254#FFFFFF#000000##FFFFFF
##3712541.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#322232
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #371254;
/* rgb */ color: rgb(55, 18, 84);
/* oklch */ color: oklch(28.0% 0.114 305.8);
Tailwind
colors: {
  custom: {
    50: '#715485',
    500: '#371254',
    950: '#000000',
  },
}
SCSS
$custom: #371254;
$custom-light: #715485;
$custom-dark: #000000;
JSON
{
  "hex": "#371254",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 273.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.2802,
    "c": 0.11382,
    "h": 305.8
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#371254
secondary
#5C8D35
accent
#E8408A
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371254

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

Preview Lab → · Contrast checker → · Palette generator →

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