#371895#371895

#371895 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.184 H 283.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#371895
RGBrgb(55, 24, 149)
HSLhsl(255, 72%, 34%)
HSVhsv(255, 84%, 58%)
CMYKcmyk(63.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.43, 47.15, -62.05)
CIE-LCHlch(22.43, 77.93, 307.23°)
OKLaboklab(35.28% 0.0413 -0.1789)
OKLCHoklch(35.28% 0.184 283)
XYZxyz(7.3253, 3.6349, 28.7435)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371895 #769518
analogous
#183895 #371895 #761895
triadic
#371895 #953718 #189537
tetradic
#371895 #951838 #769518 #189576
square
#371895 #951838 #769518 #189576
split-complementary
#371895 #957618 #389518
monochromatic
#10072C #241060 #371895 #4A20CA #6D46E1

Accessibility & contrast

On white

12.16
#371895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#371895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371895
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371895#FFFFFF#000000##FFFFFF
##3718951.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371895;
/* rgb */ color: rgb(55, 24, 149);
/* oklch */ color: oklch(35.3% 0.184 283.0);
Tailwind
colors: {
  custom: {
    50: '#7b5bb5',
    500: '#371895',
    950: '#000000',
  },
}
SCSS
$custom: #371895;
$custom-light: #7b5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371895",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 254.88,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35277,
    "c": 0.18365,
    "h": 283
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#371895
secondary
#A4C246
accent
#EF39C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371895

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

Preview Lab → · Contrast checker → · Palette generator →

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