#371274#371274

#371274 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 292.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#371274
RGBrgb(55, 18, 116)
HSLhsl(263, 73%, 26%)
HSVhsv(263, 84%, 45%)
CMYKcmyk(52.6%, 84.5%, 0%, 54.5%)
CIE-LABlab(17.94, 40.33, -48.62)
CIE-LCHlch(17.94, 63.17, 309.67°)
OKLaboklab(31.11% 0.057 -0.1397)
OKLCHoklch(31.11% 0.151 292.2)
XYZxyz(4.9433, 2.5056, 16.7428)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371274 #4F7412
analogous
#121E74 #371274 #681274
triadic
#371274 #743712 #127437
tetradic
#371274 #74121E #4F7412 #127468
square
#371274 #74121E #4F7412 #127468
split-complementary
#371274 #746812 #1E7412
monochromatic
#0D041A #1E0A3F #371274 #501AA9 #6923DD

Accessibility & contrast

On white

13.99
#371274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371274
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371274#FFFFFF#000000##FFFFFF
##3712741.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#222F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371274;
/* rgb */ color: rgb(55, 18, 116);
/* oklch */ color: oklch(31.1% 0.151 292.2);
Tailwind
colors: {
  custom: {
    50: '#76569d',
    500: '#371274',
    950: '#000000',
  },
}
SCSS
$custom: #371274;
$custom-light: #76569d;
$custom-dark: #000000;
JSON
{
  "hex": "#371274",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 262.653,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31113,
    "c": 0.15087,
    "h": 292.2
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#371274
secondary
#7FAB37
accent
#F038AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371274

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

Preview Lab → · Contrast checker → · Palette generator →

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