#371258#371258

#371258 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.4% C 0.118 H 303.7°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#371258
RGBrgb(55, 18, 88)
HSLhsl(272, 66%, 21%)
HSVhsv(272, 80%, 35%)
CMYKcmyk(37.5%, 79.5%, 0%, 65.5%)
CIE-LABlab(15.22, 32.61, -34.63)
CIE-LCHlch(15.22, 47.57, 313.28°)
OKLaboklab(28.38% 0.0657 -0.0986)
OKLCHoklch(28.38% 0.119 303.7)
XYZxyz(3.5529, 1.9494, 9.4197)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371258 #335812
analogous
#141258 #371258 #581256
triadic
#371258 #583712 #125837
tetradic
#371258 #581412 #335812 #125658
square
#371258 #581412 #335812 #125658
split-complementary
#371258 #565812 #125814
monochromatic
#100519 #170825 #371258 #571C8B #7727BE

Accessibility & contrast

On white

15.11
#371258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#371258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371258
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371258#FFFFFF#000000##FFFFFF
##3712581.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#302334
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371258;
/* rgb */ color: rgb(55, 18, 88);
/* oklch */ color: oklch(28.4% 0.118 303.7);
Tailwind
colors: {
  custom: {
    50: '#725488',
    500: '#371258',
    950: '#000000',
  },
}
SCSS
$custom: #371258;
$custom-light: #725488;
$custom-dark: #000000;
JSON
{
  "hex": "#371258",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 271.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28375,
    "c": 0.1185,
    "h": 303.7
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#371258
secondary
#609135
accent
#E93F8F
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371258

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

Preview Lab → · Contrast checker → · Palette generator →

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