#371B63#371B63

#371B63 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.120 H 296.4°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#371B63
RGBrgb(55, 27, 99)
HSLhsl(263, 57%, 25%)
HSVhsv(263, 73%, 39%)
CMYKcmyk(44.4%, 72.7%, 0%, 61.2%)
CIE-LABlab(17.90, 30.90, -37.60)
CIE-LCHlch(17.90, 48.66, 309.41°)
OKLaboklab(30.59% 0.0534 -0.1074)
OKLCHoklch(30.59% 0.12 296.4)
XYZxyz(4.2190, 2.4969, 12.0616)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B63 #47631B
analogous
#1B2363 #371B63 #5B1B63
triadic
#371B63 #63371B #1B6337
tetradic
#371B63 #631B23 #47631B #1B635B
square
#371B63 #631B23 #47631B #1B635B
split-complementary
#371B63 #635B1B #23631B
monochromatic
#0D0718 #1C0E33 #371B63 #522893 #6C35C3

Accessibility & contrast

On white

14.01
#371B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#371B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B63
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B63#FFFFFF#000000##FFFFFF
##371B631.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#2C2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371b63;
/* rgb */ color: rgb(55, 27, 99);
/* oklch */ color: oklch(30.6% 0.120 296.4);
Tailwind
colors: {
  custom: {
    50: '#725a90',
    500: '#371b63',
    950: '#000000',
  },
}
SCSS
$custom: #371b63;
$custom-light: #725a90;
$custom-dark: #000000;
JSON
{
  "hex": "#371b63",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 263.333,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30585,
    "c": 0.11994,
    "h": 296.4
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#371B63
secondary
#779841
accent
#E047A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371B63

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

Preview Lab → · Contrast checker → · Palette generator →

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