#371275#371275

#371275 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.152 H 291.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#371275
RGBrgb(55, 18, 117)
HSLhsl(262, 73%, 26%)
HSVhsv(262, 85%, 46%)
CMYKcmyk(53%, 84.6%, 0%, 54.1%)
CIE-LABlab(18.05, 40.61, -49.10)
CIE-LCHlch(18.05, 63.71, 309.59°)
OKLaboklab(31.22% 0.0566 -0.1411)
OKLCHoklch(31.22% 0.152 291.9)
XYZxyz(5.0018, 2.5290, 17.0508)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371275 #507512
analogous
#121F75 #371275 #691275
triadic
#371275 #753712 #127537
tetradic
#371275 #75121F #507512 #127569
square
#371275 #75121F #507512 #127569
split-complementary
#371275 #756912 #1F7512
monochromatic
#0C041B #1E0A40 #371275 #501AAA #6924DD

Accessibility & contrast

On white

13.95
#371275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#371275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371275
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371275#FFFFFF#000000##FFFFFF
##3712751.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#222F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371275;
/* rgb */ color: rgb(55, 18, 117);
/* oklch */ color: oklch(31.2% 0.152 291.9);
Tailwind
colors: {
  custom: {
    50: '#76569e',
    500: '#371275',
    950: '#000000',
  },
}
SCSS
$custom: #371275;
$custom-light: #76569e;
$custom-dark: #000000;
JSON
{
  "hex": "#371275",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 262.424,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31218,
    "c": 0.15201,
    "h": 291.9
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#371275
secondary
#80AC37
accent
#F038AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371275

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

Preview Lab → · Contrast checker → · Palette generator →

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