#37238A#37238A

#37238A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.160 H 283.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#37238A
RGBrgb(55, 35, 138)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 54%)
CMYKcmyk(60.1%, 74.6%, 0%, 45.9%)
CIE-LABlab(23.17, 38.37, -54.00)
CIE-LCHlch(23.17, 66.24, 305.40°)
OKLaboklab(35.45% 0.0374 -0.1556)
OKLCHoklch(35.45% 0.16 283.5)
XYZxyz(6.7626, 3.8488, 24.4264)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37238A #768A23
analogous
#23438A #37238A #6B238A
triadic
#37238A #8A3723 #238A37
tetradic
#37238A #8A2343 #768A23 #238A6B
square
#37238A #8A2343 #768A23 #238A6B
split-complementary
#37238A #8A6B23 #438A23
monochromatic
#100A28 #241759 #37238A #4A2FBB #6D54D4

Accessibility & contrast

On white

11.87
#37238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#37238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37238A
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37238A#FFFFFF#000000##FFFFFF
##37238A1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#043F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #37238a;
/* rgb */ color: rgb(55, 35, 138);
/* oklch */ color: oklch(35.4% 0.160 283.5);
Tailwind
colors: {
  custom: {
    50: '#7860ad',
    500: '#37238a',
    950: '#000000',
  },
}
SCSS
$custom: #37238a;
$custom-light: #7860ad;
$custom-dark: #000000;
JSON
{
  "hex": "#37238a",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 251.65,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35447,
    "c": 0.15999,
    "h": 283.5
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#37238A
secondary
#A4B751
accent
#E345C4
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37238A

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

Preview Lab → · Contrast checker → · Palette generator →

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