#371261#371261

#371261 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.129 H 299.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#371261
RGBrgb(55, 18, 97)
HSLhsl(268, 69%, 23%)
HSVhsv(268, 81%, 38%)
CMYKcmyk(43.3%, 81.4%, 0%, 62%)
CIE-LABlab(16.04, 35.06, -39.31)
CIE-LCHlch(16.04, 52.67, 311.73°)
OKLaboklab(29.21% 0.0633 -0.1124)
OKLCHoklch(29.21% 0.129 299.4)
XYZxyz(3.9490, 2.1079, 11.5057)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371261 #3C6112
analogous
#121561 #371261 #5E1261
triadic
#371261 #613712 #126137
tetradic
#371261 #611215 #3C6112 #12615E
square
#371261 #611215 #3C6112 #12615E
split-complementary
#371261 #615E12 #156112
monochromatic
#0F051A #1A082D #371261 #541C95 #7225C8

Accessibility & contrast

On white

14.77
#371261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#371261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371261
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371261#FFFFFF#000000##FFFFFF
##3712611.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#2D2739
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371261;
/* rgb */ color: rgb(55, 18, 97);
/* oklch */ color: oklch(29.2% 0.129 299.4);
Tailwind
colors: {
  custom: {
    50: '#73548f',
    500: '#371261',
    950: '#000000',
  },
}
SCSS
$custom: #371261;
$custom-light: #73548f;
$custom-dark: #000000;
JSON
{
  "hex": "#371261",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 268.101,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29211,
    "c": 0.12899,
    "h": 299.4
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#371261
secondary
#6B9936
accent
#EC3C99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371261

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

Preview Lab → · Contrast checker → · Palette generator →

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