#27186F#27186F

#27186F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.140 H 281.5°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#27186F
RGBrgb(39, 24, 111)
HSLhsl(250, 64%, 26%)
HSVhsv(250, 78%, 44%)
CMYKcmyk(64.9%, 78.4%, 0%, 56.5%)
CIE-LABlab(16.66, 33.60, -47.56)
CIE-LCHlch(16.66, 58.23, 305.24°)
OKLaboklab(29.64% 0.0279 -0.1372)
OKLCHoklch(29.64% 0.14 281.5)
XYZxyz(4.0317, 2.2320, 15.2542)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27186F #606F18
analogous
#18356F #27186F #53186F
triadic
#27186F #6F2718 #186F27
tetradic
#27186F #6F1835 #606F18 #186F53
square
#27186F #6F1835 #606F18 #186F53
split-complementary
#27186F #6F5318 #356F18
monochromatic
#090519 #150D3D #27186F #3923A1 #4B2FD2

Accessibility & contrast

On white

14.52
#27186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#27186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27186F
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27186F#FFFFFF#000000##FFFFFF
##27186F1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #27186f;
/* rgb */ color: rgb(39, 24, 111);
/* oklch */ color: oklch(29.6% 0.140 281.5);
Tailwind
colors: {
  custom: {
    50: '#6c5799',
    500: '#27186f',
    950: '#000000',
  },
}
SCSS
$custom: #27186f;
$custom-light: #6c5799;
$custom-dark: #000000;
JSON
{
  "hex": "#27186f",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 250.345,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29635,
    "c": 0.14,
    "h": 281.5
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#27186F
secondary
#93A53E
accent
#E740CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27186F

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

Preview Lab → · Contrast checker → · Palette generator →

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