#37228B#37228B

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

Color values

HEX#37228B
RGBrgb(55, 34, 139)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(60.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(23.07, 39.24, -54.78)
CIE-LCHlch(23.07, 67.39, 305.61°)
OKLaboklab(35.41% 0.038 -0.1578)
OKLCHoklch(35.41% 0.162 283.5)
XYZxyz(6.8063, 3.8199, 24.7997)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37228B #768B22
analogous
#22428B #37228B #6C228B
triadic
#37228B #8B3722 #228B37
tetradic
#37228B #8B2242 #768B22 #228B6C
square
#37228B #8B2242 #768B22 #228B6C
split-complementary
#37228B #8B6C22 #428B22
monochromatic
#100A29 #24165A #37228B #4A2EBC #6D53D5

Accessibility & contrast

On white

11.90
#37228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#37228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37228B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37228B#FFFFFF#000000##FFFFFF
##37228B1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#023F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #37228b;
/* rgb */ color: rgb(55, 34, 139);
/* oklch */ color: oklch(35.4% 0.162 283.5);
Tailwind
colors: {
  custom: {
    50: '#7860ae',
    500: '#37228b',
    950: '#000000',
  },
}
SCSS
$custom: #37228b;
$custom-light: #7860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#37228b",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 252,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35407,
    "c": 0.16235,
    "h": 283.5
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#37228B
secondary
#A4B850
accent
#E444C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #37228B

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

Preview Lab → · Contrast checker → · Palette generator →

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