#371F98#371F98

#371F98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.181 H 281.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#371F98
RGBrgb(55, 31, 152)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(63.8%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.86, 44.81, -61.52)
CIE-LCHlch(23.86, 76.11, 306.07°)
OKLaboklab(36.37% 0.0365 -0.1775)
OKLCHoklch(36.37% 0.181 281.6)
XYZxyz(7.7313, 4.0586, 30.0757)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F98 #80981F
analogous
#1F4398 #371F98 #731F98
triadic
#371F98 #98371F #1F9837
tetradic
#371F98 #981F43 #80981F #1F9873
square
#371F98 #981F43 #80981F #1F9873
split-complementary
#371F98 #98731F #43981F
monochromatic
#120A32 #251565 #371F98 #4929CB #7055DC

Accessibility & contrast

On white

11.59
#371F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#371F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F98
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F98#FFFFFF#000000##FFFFFF
##371F981.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371f98;
/* rgb */ color: rgb(55, 31, 152);
/* oklch */ color: oklch(36.4% 0.181 281.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fb8',
    500: '#371f98',
    950: '#000000',
  },
}
SCSS
$custom: #371f98;
$custom-light: #7b5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371f98",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 251.901,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36371,
    "c": 0.18119,
    "h": 281.6
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#371F98
secondary
#AAC053
accent
#E93FC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371F98

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

Preview Lab → · Contrast checker → · Palette generator →

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