#37238F#37238F

#37238F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.166 H 282.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#37238F
RGBrgb(55, 35, 143)
HSLhsl(251, 61%, 35%)
HSVhsv(251, 76%, 56%)
CMYKcmyk(61.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(23.66, 39.95, -56.29)
CIE-LCHlch(23.66, 69.03, 305.36°)
OKLaboklab(35.95% 0.0362 -0.1623)
OKLCHoklch(35.95% 0.166 282.6)
XYZxyz(7.1330, 3.9970, 26.3769)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37238F #7B8F23
analogous
#23458F #37238F #6D238F
triadic
#37238F #8F3723 #238F37
tetradic
#37238F #8F2345 #7B8F23 #238F6D
square
#37238F #8F2345 #7B8F23 #238F6D
split-complementary
#37238F #8F6D23 #458F23
monochromatic
#110B2D #24175E #37238F #4A2FC0 #6E57D6

Accessibility & contrast

On white

11.67
#37238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#37238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37238F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37238F#FFFFFF#000000##FFFFFF
##37238F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #37238f;
/* rgb */ color: rgb(55, 35, 143);
/* oklch */ color: oklch(35.9% 0.166 282.6);
Tailwind
colors: {
  custom: {
    50: '#7960b1',
    500: '#37238f',
    950: '#000000',
  },
}
SCSS
$custom: #37238f;
$custom-light: #7960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#37238f",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 251.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35948,
    "c": 0.16627,
    "h": 282.6
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #37238F

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

Preview Lab → · Contrast checker → · Palette generator →

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