#371266#371266

#371266 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.135 H 297.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#371266
RGBrgb(55, 18, 102)
HSLhsl(266, 70%, 24%)
HSVhsv(266, 82%, 40%)
CMYKcmyk(46.1%, 82.4%, 0%, 60%)
CIE-LABlab(16.52, 36.43, -41.83)
CIE-LCHlch(16.52, 55.47, 311.06°)
OKLaboklab(29.7% 0.0618 -0.1198)
OKLCHoklch(29.7% 0.135 297.3)
XYZxyz(4.1895, 2.2041, 12.7725)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371266 #416612
analogous
#121766 #371266 #611266
triadic
#371266 #663712 #126637
tetradic
#371266 #661217 #416612 #126661
square
#371266 #661217 #416612 #126661
split-complementary
#371266 #666112 #176612
monochromatic
#0E051A #1B0932 #371266 #531B9A #6F24CE

Accessibility & contrast

On white

14.58
#371266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#371266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371266
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371266#FFFFFF#000000##FFFFFF
##3712661.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#2B293C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371266;
/* rgb */ color: rgb(55, 18, 102);
/* oklch */ color: oklch(29.7% 0.135 297.3);
Tailwind
colors: {
  custom: {
    50: '#735592',
    500: '#371266',
    950: '#000000',
  },
}
SCSS
$custom: #371266;
$custom-light: #735592;
$custom-dark: #000000;
JSON
{
  "hex": "#371266",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 266.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29695,
    "c": 0.13479,
    "h": 297.3
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#371266
secondary
#709E36
accent
#ED3B9E
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #371266

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

Preview Lab → · Contrast checker → · Palette generator →

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