#371EAC#371EAC

#371EAC is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.4% C 0.205 H 278.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#371EAC
RGBrgb(55, 30, 172)
HSLhsl(251, 70%, 40%)
HSVhsv(251, 83%, 67%)
CMYKcmyk(68%, 82.6%, 0%, 32.5%)
CIE-LABlab(25.92, 51.23, -70.29)
CIE-LCHlch(25.92, 86.98, 306.09°)
OKLaboklab(38.45% 0.0308 -0.203)
OKLCHoklch(38.45% 0.205 278.6)
XYZxyz(9.4838, 4.7185, 39.4327)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371EAC #93AC1E
analogous
#1E4CAC #371EAC #7E1EAC
triadic
#371EAC #AC371E #1EAC37
tetradic
#371EAC #AC1E4C #93AC1E #1EAC7E
square
#371EAC #AC1E4C #93AC1E #1EAC7E
split-complementary
#371EAC #AC7E1E #4CAC1E
monochromatic
#160C44 #261578 #371EAC #4B2DDA #7861E3

Accessibility & contrast

On white

10.80
#371EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#371EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371EAC
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371EAC#FFFFFF#000000##FFFFFF
##371EAC1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0038AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #371eac;
/* rgb */ color: rgb(55, 30, 172);
/* oklch */ color: oklch(38.4% 0.205 278.6);
Tailwind
colors: {
  custom: {
    50: '#805fc6',
    500: '#371eac',
    950: '#000000',
  },
}
SCSS
$custom: #371eac;
$custom-light: #805fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#371eac",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 250.563,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38445,
    "c": 0.20533,
    "h": 278.6
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#371EAC
secondary
#B5C85E
accent
#ED3BCE
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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