#37238E#37238E

#37238E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.165 H 282.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#37238E
RGBrgb(55, 35, 142)
HSLhsl(251, 60%, 35%)
HSVhsv(251, 75%, 56%)
CMYKcmyk(61.3%, 75.4%, 0%, 44.3%)
CIE-LABlab(23.56, 39.63, -55.84)
CIE-LCHlch(23.56, 68.47, 305.37°)
OKLaboklab(35.85% 0.0365 -0.1609)
OKLCHoklch(35.85% 0.165 282.8)
XYZxyz(7.0575, 3.9668, 25.9797)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37238E #7A8E23
analogous
#23458E #37238E #6D238E
triadic
#37238E #8E3723 #238E37
tetradic
#37238E #8E2345 #7A8E23 #238E6D
square
#37238E #8E2345 #7A8E23 #238E6D
split-complementary
#37238E #8E6D23 #458E23
monochromatic
#110B2C #24175D #37238E #4A2FBF #6E56D5

Accessibility & contrast

On white

11.71
#37238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#37238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37238E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37238E#FFFFFF#000000##FFFFFF
##37238E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #37238e;
/* rgb */ color: rgb(55, 35, 142);
/* oklch */ color: oklch(35.8% 0.165 282.8);
Tailwind
colors: {
  custom: {
    50: '#7960b0',
    500: '#37238e',
    950: '#000000',
  },
}
SCSS
$custom: #37238e;
$custom-light: #7960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#37238e",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 251.215,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35847,
    "c": 0.16502,
    "h": 282.8
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#37238E
secondary
#A6B953
accent
#E444C6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #37238E

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

Preview Lab → · Contrast checker → · Palette generator →

#37238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva