#37127E#37127E

#37127E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 289.2°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#37127E
RGBrgb(55, 18, 126)
HSLhsl(261, 75%, 28%)
HSVhsv(261, 86%, 49%)
CMYKcmyk(56.3%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.02, 43.12, -53.26)
CIE-LCHlch(19.02, 68.53, 308.99°)
OKLaboklab(32.17% 0.0532 -0.1532)
OKLCHoklch(32.17% 0.162 289.2)
XYZxyz(5.5566, 2.7509, 19.9728)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37127E #597E12
analogous
#12237E #37127E #6D127E
triadic
#37127E #7E3712 #127E37
tetradic
#37127E #7E1223 #597E12 #127E6D
square
#37127E #7E1223 #597E12 #127E6D
split-complementary
#37127E #7E6D12 #237E12
monochromatic
#0C041B #200A48 #37127E #4E1AB4 #682AE1

Accessibility & contrast

On white

13.55
#37127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#37127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37127E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37127E#FFFFFF#000000##FFFFFF
##37127E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#1A334A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #37127e;
/* rgb */ color: rgb(55, 18, 126);
/* oklch */ color: oklch(32.2% 0.162 289.2);
Tailwind
colors: {
  custom: {
    50: '#7756a4',
    500: '#37127e',
    950: '#000000',
  },
}
SCSS
$custom: #37127e;
$custom-light: #7756a4;
$custom-dark: #000000;
JSON
{
  "hex": "#37127e",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 260.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.16223,
    "h": 289.2
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#37127E
secondary
#89B438
accent
#F236B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #37127E

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

Preview Lab → · Contrast checker → · Palette generator →

#37127E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva