#371852#371852

#371852 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.103 H 305.4°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#371852
RGBrgb(55, 24, 82)
HSLhsl(272, 55%, 21%)
HSVhsv(272, 71%, 32%)
CMYKcmyk(32.9%, 70.7%, 0%, 67.8%)
CIE-LABlab(15.87, 27.76, -29.51)
CIE-LCHlch(15.87, 40.51, 313.25°)
OKLaboklab(28.69% 0.0594 -0.0836)
OKLCHoklch(28.69% 0.103 305.4)
XYZxyz(3.4248, 2.0747, 8.2010)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371852 #335218
analogous
#1A1852 #371852 #521850
triadic
#371852 #523718 #185237
tetradic
#371852 #521A18 #335218 #185052
square
#371852 #521A18 #335218 #185052
split-complementary
#371852 #505218 #18521A
monochromatic
#100718 #170A23 #371852 #572681 #7734B1

Accessibility & contrast

On white

14.84
#371852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#371852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371852
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371852#FFFFFF#000000##FFFFFF
##3718521.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#092851
Tritanopia (blue-blind)
#322432
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #371852;
/* rgb */ color: rgb(55, 24, 82);
/* oklch */ color: oklch(28.7% 0.103 305.4);
Tailwind
colors: {
  custom: {
    50: '#705783',
    500: '#371852',
    950: '#000000',
  },
}
SCSS
$custom: #371852;
$custom-light: #705783;
$custom-dark: #000000;
JSON
{
  "hex": "#371852",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 272.069,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28686,
    "c": 0.10257,
    "h": 305.4
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#371852
secondary
#60893D
accent
#DE4A8F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371852

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

Preview Lab → · Contrast checker → · Palette generator →

#371852 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva