#37237B#37237B

#37237B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.141 H 286.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#37237B
RGBrgb(55, 35, 123)
HSLhsl(254, 56%, 31%)
HSVhsv(254, 72%, 48%)
CMYKcmyk(55.3%, 71.5%, 0%, 51.8%)
CIE-LABlab(21.74, 33.61, -46.88)
CIE-LCHlch(21.74, 57.68, 305.64°)
OKLaboklab(34% 0.0405 -0.1347)
OKLCHoklch(34% 0.141 286.7)
XYZxyz(5.7507, 3.4441, 19.0968)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37237B #677B23
analogous
#233B7B #37237B #63237B
triadic
#37237B #7B3723 #237B37
tetradic
#37237B #7B233B #677B23 #237B63
square
#37237B #7B233B #677B23 #237B63
split-complementary
#37237B #7B6323 #3B7B23
monochromatic
#0C081C #22154B #37237B #4C31AB #694CCC

Accessibility & contrast

On white

12.43
#37237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #37237B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37237B#FFFFFF#000000##FFFFFF
##37237B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#1B3A4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37237b;
/* rgb */ color: rgb(55, 35, 123);
/* oklch */ color: oklch(34.0% 0.141 286.7);
Tailwind
colors: {
  custom: {
    50: '#7560a2',
    500: '#37237b',
    950: '#000000',
  },
}
SCSS
$custom: #37237b;
$custom-light: #7560a2;
$custom-dark: #000000;
JSON
{
  "hex": "#37237b",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 253.636,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.14067,
    "h": 286.7
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#37237B
secondary
#97AE4C
accent
#DF49BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #37237B

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

Preview Lab → · Contrast checker → · Palette generator →

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