#37187F#37187F

#37187F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.158 H 288.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#37187F
RGBrgb(55, 24, 127)
HSLhsl(258, 68%, 30%)
HSVhsv(258, 81%, 50%)
CMYKcmyk(56.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.03, 40.76, -52.22)
CIE-LCHlch(20.03, 66.24, 307.97°)
OKLaboklab(32.91% 0.0489 -0.1503)
OKLCHoklch(32.91% 0.158 288)
XYZxyz(5.7318, 2.9975, 20.3511)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37187F #607F18
analogous
#182D7F #37187F #6B187F
triadic
#37187F #7F3718 #187F37
tetradic
#37187F #7F182D #607F18 #187F6B
square
#37187F #7F182D #607F18 #187F6B
split-complementary
#37187F #7F6B18 #2D7F18
monochromatic
#0B051A #210E4C #37187F #4D22B2 #6938D9

Accessibility & contrast

On white

13.13
#37187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#37187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37187F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37187F#FFFFFF#000000##FFFFFF
##37187F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#18364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #37187f;
/* rgb */ color: rgb(55, 24, 127);
/* oklch */ color: oklch(32.9% 0.158 288.0);
Tailwind
colors: {
  custom: {
    50: '#7759a5',
    500: '#37187f',
    950: '#000000',
  },
}
SCSS
$custom: #37187f;
$custom-light: #7759a5;
$custom-dark: #000000;
JSON
{
  "hex": "#37187f",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 258.058,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.15802,
    "h": 288
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#37187F
secondary
#90B33F
accent
#EB3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #37187F

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

Preview Lab → · Contrast checker → · Palette generator →

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