#37238C#37238C

#37238C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.163 H 283.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#37238C
RGBrgb(55, 35, 140)
HSLhsl(251, 60%, 34%)
HSVhsv(251, 75%, 55%)
CMYKcmyk(60.7%, 75%, 0%, 45.1%)
CIE-LABlab(23.36, 39.00, -54.92)
CIE-LCHlch(23.36, 67.36, 305.38°)
OKLaboklab(35.65% 0.0369 -0.1583)
OKLCHoklch(35.65% 0.163 283.1)
XYZxyz(6.9087, 3.9073, 25.1960)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37238C #788C23
analogous
#23438C #37238C #6C238C
triadic
#37238C #8C3723 #238C37
tetradic
#37238C #8C2343 #788C23 #238C6C
square
#37238C #8C2343 #788C23 #238C6C
split-complementary
#37238C #8C6C23 #438C23
monochromatic
#110B2A #24175B #37238C #4A2FBD #6D55D4

Accessibility & contrast

On white

11.79
#37238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#37238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37238C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37238C#FFFFFF#000000##FFFFFF
##37238C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #37238c;
/* rgb */ color: rgb(55, 35, 140);
/* oklch */ color: oklch(35.6% 0.163 283.1);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#37238c',
    950: '#000000',
  },
}
SCSS
$custom: #37238c;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#37238c",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 251.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35646,
    "c": 0.16251,
    "h": 283.1
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#37238C
secondary
#A5B852
accent
#E345C5
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37238C

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

Preview Lab → · Contrast checker → · Palette generator →

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