#37237C#37237C

#37237C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.142 H 286.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#37237C
RGBrgb(55, 35, 124)
HSLhsl(253, 56%, 31%)
HSVhsv(253, 72%, 49%)
CMYKcmyk(55.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(21.83, 33.93, -47.37)
CIE-LCHlch(21.83, 58.27, 305.62°)
OKLaboklab(34.09% 0.0404 -0.1361)
OKLCHoklch(34.09% 0.142 286.5)
XYZxyz(5.8136, 3.4692, 19.4282)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37237C #687C23
analogous
#233B7C #37237C #63237C
triadic
#37237C #7C3723 #237C37
tetradic
#37237C #7C233B #687C23 #237C63
square
#37237C #7C233B #687C23 #237C63
split-complementary
#37237C #7C6323 #3B7C23
monochromatic
#0D081D #22164C #37237C #4C30AC #694DCD

Accessibility & contrast

On white

12.40
#37237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#37237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37237C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37237C#FFFFFF#000000##FFFFFF
##37237C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#1B3A4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37237c;
/* rgb */ color: rgb(55, 35, 124);
/* oklch */ color: oklch(34.1% 0.142 286.5);
Tailwind
colors: {
  custom: {
    50: '#7660a3',
    500: '#37237c',
    950: '#000000',
  },
}
SCSS
$custom: #37237c;
$custom-light: #7660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#37237c",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 253.483,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.14199,
    "h": 286.5
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#37237C
secondary
#98AF4C
accent
#DF49BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #37237C

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

Preview Lab → · Contrast checker → · Palette generator →

#37237C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva