#371273#371273

#371273 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.150 H 292.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#371273
RGBrgb(55, 18, 115)
HSLhsl(263, 73%, 26%)
HSVhsv(263, 84%, 45%)
CMYKcmyk(52.2%, 84.3%, 0%, 54.9%)
CIE-LABlab(17.84, 40.05, -48.15)
CIE-LCHlch(17.84, 62.63, 309.75°)
OKLaboklab(31.01% 0.0574 -0.1383)
OKLCHoklch(31.01% 0.15 292.5)
XYZxyz(4.8855, 2.4825, 16.4381)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371273 #4E7312
analogous
#121D73 #371273 #671273
triadic
#371273 #733712 #127337
tetradic
#371273 #73121D #4E7312 #127367
square
#371273 #73121D #4E7312 #127367
split-complementary
#371273 #736712 #1D7312
monochromatic
#0D041A #1E0A3E #371273 #501AA8 #6A23DD

Accessibility & contrast

On white

14.03
#371273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#371273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371273
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371273#FFFFFF#000000##FFFFFF
##3712731.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#232F43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371273;
/* rgb */ color: rgb(55, 18, 115);
/* oklch */ color: oklch(31.0% 0.150 292.5);
Tailwind
colors: {
  custom: {
    50: '#75569c',
    500: '#371273',
    950: '#000000',
  },
}
SCSS
$custom: #371273;
$custom-light: #75569c;
$custom-dark: #000000;
JSON
{
  "hex": "#371273",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 262.887,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31009,
    "c": 0.14972,
    "h": 292.5
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#371273
secondary
#7EAA37
accent
#F038AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371273

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

Preview Lab → · Contrast checker → · Palette generator →

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