#37188F#37188F

#37188F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.177 H 284.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#37188F
RGBrgb(55, 24, 143)
HSLhsl(256, 71%, 33%)
HSVhsv(256, 83%, 56%)
CMYKcmyk(61.5%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.76, 45.42, -59.44)
CIE-LCHlch(21.76, 74.80, 307.39°)
OKLaboklab(34.62% 0.0434 -0.1713)
OKLCHoklch(34.62% 0.177 284.2)
XYZxyz(6.8586, 3.4482, 26.2854)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37188F #708F18
analogous
#18358F #37188F #72188F
triadic
#37188F #8F3718 #188F37
tetradic
#37188F #8F1835 #708F18 #188F72
square
#37188F #8F1835 #708F18 #188F72
split-complementary
#37188F #8F7218 #358F18
monochromatic
#0F0626 #230F5B #37188F #4B21C3 #6B42DF

Accessibility & contrast

On white

12.43
#37188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#37188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37188F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37188F#FFFFFF#000000##FFFFFF
##37188F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37188f;
/* rgb */ color: rgb(55, 24, 143);
/* oklch */ color: oklch(34.6% 0.177 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a5ab1',
    500: '#37188f',
    950: '#000000',
  },
}
SCSS
$custom: #37188f;
$custom-light: #7a5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#37188f",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 255.63,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34618,
    "c": 0.17675,
    "h": 284.2
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#37188F
secondary
#9FC043
accent
#EE3ABF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37188F

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

Preview Lab → · Contrast checker → · Palette generator →

#37188F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva