#36187F#36187F

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

Color values

HEX#36187F
RGBrgb(54, 24, 127)
HSLhsl(257, 68%, 30%)
HSVhsv(257, 81%, 50%)
CMYKcmyk(57.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.92, 40.62, -52.41)
CIE-LCHlch(19.92, 66.31, 307.78°)
OKLaboklab(32.81% 0.0472 -0.1509)
OKLCHoklch(32.81% 0.158 287.4)
XYZxyz(5.6776, 2.9695, 20.3486)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36187F #617F18
analogous
#182D7F #36187F #6A187F
triadic
#36187F #7F3618 #187F36
tetradic
#36187F #7F182D #617F18 #187F6A
square
#36187F #7F182D #617F18 #187F6A
split-complementary
#36187F #7F6A18 #2D7F18
monochromatic
#0B051A #200E4C #36187F #4C22B2 #6738D9

Accessibility & contrast

On white

13.17
#36187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#36187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36187F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36187F#FFFFFF#000000##FFFFFF
##36187F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#15364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #36187f;
/* rgb */ color: rgb(54, 24, 127);
/* oklch */ color: oklch(32.8% 0.158 287.4);
Tailwind
colors: {
  custom: {
    50: '#7759a5',
    500: '#36187f',
    950: '#000000',
  },
}
SCSS
$custom: #36187f;
$custom-light: #7759a5;
$custom-dark: #000000;
JSON
{
  "hex": "#36187f",
  "rgb": {
    "r": 54,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 257.476,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32806,
    "c": 0.15809,
    "h": 287.4
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#36187F
secondary
#92B33F
accent
#EB3DB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #36187F

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

Preview Lab → · Contrast checker → · Palette generator →

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