#37238B#37238B

#37238B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.161 H 283.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#37238B
RGBrgb(55, 35, 139)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 55%)
CMYKcmyk(60.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.26, 38.69, -54.46)
CIE-LCHlch(23.26, 66.80, 305.39°)
OKLaboklab(35.55% 0.0372 -0.1569)
OKLCHoklch(35.55% 0.161 283.3)
XYZxyz(6.8353, 3.8779, 24.8094)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37238B #778B23
analogous
#23438B #37238B #6B238B
triadic
#37238B #8B3723 #238B37
tetradic
#37238B #8B2343 #778B23 #238B6B
square
#37238B #8B2343 #778B23 #238B6B
split-complementary
#37238B #8B6B23 #438B23
monochromatic
#100A29 #24175A #37238B #4A2FBC #6D54D4

Accessibility & contrast

On white

11.83
#37238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #37238B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37238B#FFFFFF#000000##FFFFFF
##37238B1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#024055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #37238b;
/* rgb */ color: rgb(55, 35, 139);
/* oklch */ color: oklch(35.5% 0.161 283.3);
Tailwind
colors: {
  custom: {
    50: '#7860ae',
    500: '#37238b',
    950: '#000000',
  },
}
SCSS
$custom: #37238b;
$custom-light: #7860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#37238b",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 251.538,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35546,
    "c": 0.16125,
    "h": 283.3
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#37238B
secondary
#A4B852
accent
#E345C5
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37238B

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

Preview Lab → · Contrast checker → · Palette generator →

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