#371B70#371B70

#371B70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.136 H 291.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#371B70
RGBrgb(55, 27, 112)
HSLhsl(260, 61%, 27%)
HSVhsv(260, 76%, 44%)
CMYKcmyk(50.9%, 75.9%, 0%, 56.1%)
CIE-LABlab(19.08, 34.77, -44.17)
CIE-LCHlch(19.08, 56.22, 308.21°)
OKLaboklab(31.79% 0.0507 -0.1267)
OKLCHoklch(31.79% 0.136 291.8)
XYZxyz(4.8913, 2.7658, 15.6022)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B70 #54701B
analogous
#1B2970 #371B70 #621B70
triadic
#371B70 #70371B #1B7037
tetradic
#371B70 #701B29 #54701B #1B7062
square
#371B70 #701B29 #54701B #1B7062
split-complementary
#371B70 #70621B #29701B
monochromatic
#0C0619 #1F0F3F #371B70 #4F27A1 #6937CF

Accessibility & contrast

On white

13.52
#371B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#371B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B70
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B70#FFFFFF#000000##FFFFFF
##371B701.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#253144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371b70;
/* rgb */ color: rgb(55, 27, 112);
/* oklch */ color: oklch(31.8% 0.136 291.8);
Tailwind
colors: {
  custom: {
    50: '#745a9a',
    500: '#371b70',
    950: '#000000',
  },
}
SCSS
$custom: #371b70;
$custom-light: #745a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#371b70",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 259.765,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31787,
    "c": 0.13648,
    "h": 291.8
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#371B70
secondary
#84A542
accent
#E444AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371B70

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

Preview Lab → · Contrast checker → · Palette generator →

#371B70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva