#371F88#371F88

#371F88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.162 H 284.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#371F88
RGBrgb(55, 31, 136)
HSLhsl(254, 63%, 33%)
HSVhsv(254, 77%, 53%)
CMYKcmyk(59.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(22.19, 39.93, -54.34)
CIE-LCHlch(22.19, 67.44, 306.30°)
OKLaboklab(34.7% 0.041 -0.1565)
OKLCHoklch(34.7% 0.162 284.7)
XYZxyz(6.5081, 3.5694, 23.6338)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F88 #70881F
analogous
#1F3C88 #371F88 #6B1F88
triadic
#371F88 #88371F #1F8837
tetradic
#371F88 #881F3C #70881F #1F886B
square
#371F88 #881F3C #70881F #1F886B
split-complementary
#371F88 #886B1F #3C881F
monochromatic
#0F0824 #231456 #371F88 #4B2ABA #6B4BD6

Accessibility & contrast

On white

12.25
#371F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F88
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F88#FFFFFF#000000##FFFFFF
##371F881.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#0A3D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371f88;
/* rgb */ color: rgb(55, 31, 136);
/* oklch */ color: oklch(34.7% 0.162 284.7);
Tailwind
colors: {
  custom: {
    50: '#785eac',
    500: '#371f88',
    950: '#000000',
  },
}
SCSS
$custom: #371f88;
$custom-light: #785eac;
$custom-dark: #000000;
JSON
{
  "hex": "#371f88",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 253.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.347,
    "c": 0.16183,
    "h": 284.7
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#371F88
secondary
#9FB94A
accent
#E642C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F88

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

Preview Lab → · Contrast checker → · Palette generator →

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