#372282#372282

#372282 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.151 H 285.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#372282
RGBrgb(55, 34, 130)
HSLhsl(253, 59%, 32%)
HSVhsv(253, 74%, 51%)
CMYKcmyk(57.7%, 73.8%, 0%, 49%)
CIE-LABlab(22.19, 36.41, -50.58)
CIE-LCHlch(22.19, 62.33, 305.75°)
OKLaboklab(34.52% 0.04 -0.1456)
OKLCHoklch(34.52% 0.151 285.4)
XYZxyz(6.1756, 3.5676, 21.4780)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372282 #6D8222
analogous
#223D82 #372282 #672282
triadic
#372282 #823722 #228237
tetradic
#372282 #82223D #6D8222 #228267
square
#372282 #82223D #6D8222 #228267
split-complementary
#372282 #826722 #3D8222
monochromatic
#0E0921 #221551 #372282 #4C2FB3 #6A4ED1

Accessibility & contrast

On white

12.25
#372282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#372282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372282
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372282#FFFFFF#000000##FFFFFF
##3722821.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#143C4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #372282;
/* rgb */ color: rgb(55, 34, 130);
/* oklch */ color: oklch(34.5% 0.151 285.4);
Tailwind
colors: {
  custom: {
    50: '#775fa7',
    500: '#372282',
    950: '#000000',
  },
}
SCSS
$custom: #372282;
$custom-light: #775fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#372282",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 253.125,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.15097,
    "h": 285.4
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#372282
secondary
#9DB44C
accent
#E246C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #372282

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

Preview Lab → · Contrast checker → · Palette generator →

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