#37237F#37237F

#37237F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.146 H 285.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#37237F
RGBrgb(55, 35, 127)
HSLhsl(253, 57%, 32%)
HSVhsv(253, 72%, 50%)
CMYKcmyk(56.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.11, 34.88, -48.81)
CIE-LCHlch(22.11, 60.00, 305.55°)
OKLaboklab(34.37% 0.0398 -0.1404)
OKLCHoklch(34.37% 0.146 285.8)
XYZxyz(6.0062, 3.5463, 20.4426)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37237F #6B7F23
analogous
#233D7F #37237F #65237F
triadic
#37237F #7F3723 #237F37
tetradic
#37237F #7F233D #6B7F23 #237F65
square
#37237F #7F233D #6B7F23 #237F65
split-complementary
#37237F #7F6523 #3D7F23
monochromatic
#0D091F #22164F #37237F #4C30AF #6A4ECE

Accessibility & contrast

On white

12.29
#37237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#37237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37237F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37237F#FFFFFF#000000##FFFFFF
##37237F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#173B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #37237f;
/* rgb */ color: rgb(55, 35, 127);
/* oklch */ color: oklch(34.4% 0.146 285.8);
Tailwind
colors: {
  custom: {
    50: '#7660a5',
    500: '#37237f',
    950: '#000000',
  },
}
SCSS
$custom: #37237f;
$custom-light: #7660a5;
$custom-dark: #000000;
JSON
{
  "hex": "#37237f",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 253.043,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.1459,
    "h": 285.8
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#37237F
secondary
#9BB14C
accent
#E048BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #37237F

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

Preview Lab → · Contrast checker → · Palette generator →

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