#371283#371283

#371283 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.168 H 287.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#371283
RGBrgb(55, 18, 131)
HSLhsl(260, 76%, 29%)
HSVhsv(260, 86%, 51%)
CMYKcmyk(58%, 86.3%, 0%, 48.6%)
CIE-LABlab(19.57, 44.51, -55.52)
CIE-LCHlch(19.57, 71.16, 308.72°)
OKLaboklab(32.72% 0.0513 -0.1598)
OKLCHoklch(32.72% 0.168 287.8)
XYZxyz(5.8874, 2.8832, 21.7146)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371283 #5E8312
analogous
#122683 #371283 #701283
triadic
#371283 #833712 #128337
tetradic
#371283 #831226 #5E8312 #128370
square
#371283 #831226 #5E8312 #128370
split-complementary
#371283 #837012 #268312
monochromatic
#0B041B #200B4D #371283 #4E19B9 #682DE2

Accessibility & contrast

On white

13.32
#371283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371283
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371283#FFFFFF#000000##FFFFFF
##3712831.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#14354D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371283;
/* rgb */ color: rgb(55, 18, 131);
/* oklch */ color: oklch(32.7% 0.168 287.8);
Tailwind
colors: {
  custom: {
    50: '#7857a8',
    500: '#371283',
    950: '#000000',
  },
}
SCSS
$custom: #371283;
$custom-light: #7857a8;
$custom-dark: #000000;
JSON
{
  "hex": "#371283",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 259.646,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32719,
    "c": 0.16786,
    "h": 287.8
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#371283
secondary
#8EB838
accent
#F235B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #371283

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

Preview Lab → · Contrast checker → · Palette generator →

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