#37178D#37178D

#37178D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.175 H 284.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#37178D
RGBrgb(55, 23, 141)
HSLhsl(256, 72%, 32%)
HSVhsv(256, 84%, 55%)
CMYKcmyk(61%, 83.7%, 0%, 44.7%)
CIE-LABlab(21.39, 45.28, -58.80)
CIE-LCHlch(21.39, 74.21, 307.60°)
OKLaboklab(34.3% 0.0447 -0.1695)
OKLCHoklch(34.3% 0.175 284.8)
XYZxyz(6.6882, 3.3477, 25.4879)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37178D #6D8D17
analogous
#17328D #37178D #72178D
triadic
#37178D #8D3717 #178D37
tetradic
#37178D #8D1732 #6D8D17 #178D72
square
#37178D #8D1732 #6D8D17 #178D72
split-complementary
#37178D #8D7217 #328D17
monochromatic
#0E0624 #220E58 #37178D #4C20C2 #6A3FE0

Accessibility & contrast

On white

12.58
#37178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#37178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37178D
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37178D#FFFFFF#000000##FFFFFF
##37178D1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37178d;
/* rgb */ color: rgb(55, 23, 141);
/* oklch */ color: oklch(34.3% 0.175 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ab0',
    500: '#37178d',
    950: '#000000',
  },
}
SCSS
$custom: #37178d;
$custom-light: #7a5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#37178d",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 256.271,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.17527,
    "h": 284.8
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#37178D
secondary
#9DC040
accent
#EF39BD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37178D

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

Preview Lab → · Contrast checker → · Palette generator →

#37178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva