#371774#371774

#371774 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.146 H 291.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#371774
RGBrgb(55, 23, 116)
HSLhsl(261, 67%, 27%)
HSVhsv(261, 80%, 45%)
CMYKcmyk(52.6%, 80.2%, 0%, 54.5%)
CIE-LABlab(18.74, 38.03, -47.32)
CIE-LCHlch(18.74, 60.70, 308.79°)
OKLaboklab(31.67% 0.0531 -0.1359)
OKLCHoklch(31.67% 0.146 291.4)
XYZxyz(5.0334, 2.6858, 16.7728)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371774 #547417
analogous
#172674 #371774 #651774
triadic
#371774 #743717 #177437
tetradic
#371774 #741726 #547417 #177465
square
#371774 #741726 #547417 #177465
split-complementary
#371774 #746517 #267417
monochromatic
#0C051A #1F0D41 #371774 #4F21A7 #6930D6

Accessibility & contrast

On white

13.66
#371774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#371774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371774
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371774#FFFFFF#000000##FFFFFF
##3717741.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#223145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371774;
/* rgb */ color: rgb(55, 23, 116);
/* oklch */ color: oklch(31.7% 0.146 291.4);
Tailwind
colors: {
  custom: {
    50: '#75589d',
    500: '#371774',
    950: '#000000',
  },
}
SCSS
$custom: #371774;
$custom-light: #75589d;
$custom-dark: #000000;
JSON
{
  "hex": "#371774",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 260.645,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31666,
    "c": 0.14593,
    "h": 291.4
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#371774
secondary
#84A93D
accent
#EA3EAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371774

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

Preview Lab → · Contrast checker → · Palette generator →

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