#371257#371257

#371257 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.117 H 304.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#371257
RGBrgb(55, 18, 87)
HSLhsl(272, 66%, 21%)
HSVhsv(272, 79%, 34%)
CMYKcmyk(36.8%, 79.3%, 0%, 65.9%)
CIE-LABlab(15.13, 32.34, -34.10)
CIE-LCHlch(15.13, 47.00, 313.49°)
OKLaboklab(28.29% 0.0659 -0.0971)
OKLCHoklch(28.29% 0.117 304.2)
XYZxyz(3.5118, 1.9330, 9.2031)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371257 #325712
analogous
#151257 #371257 #571254
triadic
#371257 #573712 #125737
tetradic
#371257 #571512 #325712 #125457
square
#371257 #571512 #325712 #125457
split-complementary
#371257 #545712 #125715
monochromatic
#100519 #170824 #371257 #571C8A #7727BC

Accessibility & contrast

On white

15.14
#371257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#371257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371257
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371257#FFFFFF#000000##FFFFFF
##3712571.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#312333
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371257;
/* rgb */ color: rgb(55, 18, 87);
/* oklch */ color: oklch(28.3% 0.117 304.2);
Tailwind
colors: {
  custom: {
    50: '#725487',
    500: '#371257',
    950: '#000000',
  },
}
SCSS
$custom: #371257;
$custom-light: #725487;
$custom-dark: #000000;
JSON
{
  "hex": "#371257",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 272.174,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.11733,
    "h": 304.2
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#371257
secondary
#5F9035
accent
#E93F8E
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371257

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

Preview Lab → · Contrast checker → · Palette generator →

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