#27135E#27135E

#27135E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 287.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#27135E
RGBrgb(39, 19, 94)
HSLhsl(256, 66%, 22%)
HSVhsv(256, 80%, 37%)
CMYKcmyk(58.5%, 79.8%, 0%, 63.1%)
CIE-LABlab(13.86, 30.88, -40.97)
CIE-LCHlch(13.86, 51.30, 307.00°)
OKLaboklab(27.11% 0.0366 -0.1179)
OKLCHoklch(27.11% 0.123 287.2)
XYZxyz(3.0894, 1.7051, 10.7538)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27135E #4A5E13
analogous
#13255E #27135E #4D135E
triadic
#27135E #5E2713 #135E27
tetradic
#27135E #5E1325 #4A5E13 #135E4D
square
#27135E #5E1325 #4A5E13 #135E4D
split-complementary
#27135E #5E4D13 #255E13
monochromatic
#0B0519 #12092B #27135E #3C1D91 #5128C4

Accessibility & contrast

On white

15.66
#27135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#27135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27135E
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27135E#FFFFFF#000000##FFFFFF
##27135E1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#0F2837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #27135e;
/* rgb */ color: rgb(39, 19, 94);
/* oklch */ color: oklch(27.1% 0.123 287.2);
Tailwind
colors: {
  custom: {
    50: '#68538c',
    500: '#27135e',
    950: '#000000',
  },
}
SCSS
$custom: #27135e;
$custom-light: #68538c;
$custom-dark: #000000;
JSON
{
  "hex": "#27135e",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 256,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27114,
    "c": 0.12341,
    "h": 287.2
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#27135E
secondary
#7D9637
accent
#E93FBC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #27135E

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

Preview Lab → · Contrast checker → · Palette generator →

#27135E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva