#371272#371272

#371272 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.149 H 292.9°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#371272
RGBrgb(55, 18, 114)
HSLhsl(263, 73%, 26%)
HSVhsv(263, 84%, 45%)
CMYKcmyk(51.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(17.73, 39.77, -47.68)
CIE-LCHlch(17.73, 62.09, 309.83°)
OKLaboklab(30.9% 0.0577 -0.1369)
OKLCHoklch(30.9% 0.149 292.9)
XYZxyz(4.8283, 2.4596, 16.1367)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371272 #4D7212
analogous
#121D72 #371272 #671272
triadic
#371272 #723712 #127237
tetradic
#371272 #72121D #4D7212 #127267
square
#371272 #72121D #4D7212 #127267
split-complementary
#371272 #726712 #1D7212
monochromatic
#0D041A #1D0A3D #371272 #501AA7 #6A23DC

Accessibility & contrast

On white

14.08
#371272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371272
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371272#FFFFFF#000000##FFFFFF
##3712721.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#242E43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371272;
/* rgb */ color: rgb(55, 18, 114);
/* oklch */ color: oklch(30.9% 0.149 292.9);
Tailwind
colors: {
  custom: {
    50: '#75569b',
    500: '#371272',
    950: '#000000',
  },
}
SCSS
$custom: #371272;
$custom-light: #75569b;
$custom-dark: #000000;
JSON
{
  "hex": "#371272",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 263.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30905,
    "c": 0.14858,
    "h": 292.9
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#371272
secondary
#7DA937
accent
#EF38A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371272

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

Preview Lab → · Contrast checker → · Palette generator →

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