#371255#371255

#371255 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.115 H 305.2°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#371255
RGBrgb(55, 18, 85)
HSLhsl(273, 65%, 20%)
HSVhsv(273, 79%, 33%)
CMYKcmyk(35.3%, 78.8%, 0%, 66.7%)
CIE-LABlab(14.96, 31.81, -33.03)
CIE-LCHlch(14.96, 45.86, 313.93°)
OKLaboklab(28.11% 0.0664 -0.0939)
OKLCHoklch(28.11% 0.115 305.2)
XYZxyz(3.4312, 1.9007, 8.7787)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371255 #305512
analogous
#151255 #371255 #551252
triadic
#371255 #553712 #125537
tetradic
#371255 #551512 #305512 #125255
square
#371255 #551512 #305512 #125255
split-complementary
#371255 #525512 #125515
monochromatic
#100519 #160722 #371255 #581D88 #7827BA

Accessibility & contrast

On white

15.22
#371255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371255
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371255#FFFFFF#000000##FFFFFF
##3712551.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#312232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371255;
/* rgb */ color: rgb(55, 18, 85);
/* oklch */ color: oklch(28.1% 0.115 305.2);
Tailwind
colors: {
  custom: {
    50: '#715485',
    500: '#371255',
    950: '#000000',
  },
}
SCSS
$custom: #371255;
$custom-light: #715485;
$custom-dark: #000000;
JSON
{
  "hex": "#371255",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 273.134,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28108,
    "c": 0.11499,
    "h": 305.2
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#371255
secondary
#5D8E35
accent
#E8408B
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371255

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

Preview Lab → · Contrast checker → · Palette generator →

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