#372B71#372B71

#372B71 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.5% C 0.116 H 286.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#372B71
RGBrgb(55, 43, 113)
HSLhsl(250, 45%, 31%)
HSVhsv(250, 62%, 44%)
CMYKcmyk(51.3%, 61.9%, 0%, 55.7%)
CIE-LABlab(22.76, 25.35, -38.82)
CIE-LCHlch(22.76, 46.37, 303.15°)
OKLaboklab(34.47% 0.0329 -0.111)
OKLCHoklch(34.47% 0.116 286.5)
XYZxyz(5.4192, 3.7320, 16.0544)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372B71 #65712B
analogous
#2B4271 #372B71 #5A2B71
triadic
#372B71 #71372B #2B7137
tetradic
#372B71 #712B42 #65712B #2B715A
square
#372B71 #712B42 #65712B #2B715A
split-complementary
#372B71 #715A2B #42712B
monochromatic
#0C0918 #211A45 #372B71 #4D3C9D #6957BF

Accessibility & contrast

On white

12.02
#372B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#372B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372B71
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372B71#FFFFFF#000000##FFFFFF
##372B711.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#233B49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #372b71;
/* rgb */ color: rgb(55, 43, 113);
/* oklch */ color: oklch(34.5% 0.116 286.5);
Tailwind
colors: {
  custom: {
    50: '#73659a',
    500: '#372b71',
    950: '#000000',
  },
}
SCSS
$custom: #372b71;
$custom-light: #73659a;
$custom-dark: #000000;
JSON
{
  "hex": "#372b71",
  "rgb": {
    "r": 55,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 250.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34474,
    "c": 0.11579,
    "h": 286.5
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#372B71
secondary
#95A355
accent
#D553BE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #372B71

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

Preview Lab → · Contrast checker → · Palette generator →

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