#371268#371268

#371268 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.137 H 296.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#371268
RGBrgb(55, 18, 104)
HSLhsl(266, 70%, 24%)
HSVhsv(266, 83%, 41%)
CMYKcmyk(47.1%, 82.7%, 0%, 59.2%)
CIE-LABlab(16.72, 36.99, -42.82)
CIE-LCHlch(16.72, 56.59, 310.82°)
OKLaboklab(29.89% 0.0612 -0.1227)
OKLCHoklch(29.89% 0.137 296.5)
XYZxyz(4.2899, 2.2442, 13.3012)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371268 #436812
analogous
#121868 #371268 #621268
triadic
#371268 #683712 #126837
tetradic
#371268 #681218 #436812 #126862
square
#371268 #681218 #436812 #126862
split-complementary
#371268 #686212 #186812
monochromatic
#0E051A #1B0934 #371268 #531B9C #6E24D0

Accessibility & contrast

On white

14.49
#371268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#371268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371268
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371268#FFFFFF#000000##FFFFFF
##3712681.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#2A2A3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371268;
/* rgb */ color: rgb(55, 18, 104);
/* oklch */ color: oklch(29.9% 0.137 296.5);
Tailwind
colors: {
  custom: {
    50: '#745594',
    500: '#371268',
    950: '#000000',
  },
}
SCSS
$custom: #371268;
$custom-light: #745594;
$custom-dark: #000000;
JSON
{
  "hex": "#371268",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 265.814,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29892,
    "c": 0.13709,
    "h": 296.5
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#371268
secondary
#72A036
accent
#ED3BA0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #371268

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

Preview Lab → · Contrast checker → · Palette generator →

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