#372A78#372A78

#372A78 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.127 H 285.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#372A78
RGBrgb(55, 42, 120)
HSLhsl(250, 48%, 32%)
HSVhsv(250, 65%, 47%)
CMYKcmyk(54.2%, 65%, 0%, 52.9%)
CIE-LABlab(23.08, 28.32, -42.79)
CIE-LCHlch(23.08, 51.31, 303.50°)
OKLaboklab(34.88% 0.0337 -0.1227)
OKLCHoklch(34.88% 0.127 285.3)
XYZxyz(5.7927, 3.8239, 18.1985)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372A78 #6B782A
analogous
#2A4478 #372A78 #5E2A78
triadic
#372A78 #78372A #2A7837
tetradic
#372A78 #782A44 #6B782A #2A785E
square
#372A78 #782A44 #6B782A #2A785E
split-complementary
#372A78 #785E2A #44782A
monochromatic
#0D0A1D #221A4B #372A78 #4C3AA5 #6A58C5

Accessibility & contrast

On white

11.90
#372A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#372A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372A78
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372A78#FFFFFF#000000##FFFFFF
##372A781.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#1D3D4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #372a78;
/* rgb */ color: rgb(55, 42, 120);
/* oklch */ color: oklch(34.9% 0.127 285.3);
Tailwind
colors: {
  custom: {
    50: '#7464a0',
    500: '#372a78',
    950: '#000000',
  },
}
SCSS
$custom: #372a78;
$custom-light: #7464a0;
$custom-dark: #000000;
JSON
{
  "hex": "#372a78",
  "rgb": {
    "r": 55,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 250,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.12721,
    "h": 285.3
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#372A78
secondary
#9BAA54
accent
#D850C1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #372A78

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

Preview Lab → · Contrast checker → · Palette generator →

#372A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva