#27147D#27147D

#27147D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.161 H 279.3°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#27147D
RGBrgb(39, 20, 125)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 84%, 49%)
CMYKcmyk(68.8%, 84%, 0%, 51%)
CIE-LABlab(17.52, 40.19, -55.16)
CIE-LCHlch(17.52, 68.25, 306.08°)
OKLaboklab(30.7% 0.0261 -0.1593)
OKLCHoklch(30.7% 0.161 279.3)
XYZxyz(4.7873, 2.4119, 19.6113)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27147D #6A7D14
analogous
#14357D #27147D #5B147D
triadic
#27147D #7D2714 #147D27
tetradic
#27147D #7D1435 #6A7D14 #147D5B
square
#27147D #7D1435 #6A7D14 #147D5B
split-complementary
#27147D #7D5B14 #357D14
monochromatic
#08041A #170C48 #27147D #371CB2 #4E2EDE

Accessibility & contrast

On white

14.17
#27147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27147D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27147D#FFFFFF#000000##FFFFFF
##27147D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27147d;
/* rgb */ color: rgb(39, 20, 125);
/* oklch */ color: oklch(30.7% 0.161 279.3);
Tailwind
colors: {
  custom: {
    50: '#6f56a4',
    500: '#27147d',
    950: '#000000',
  },
}
SCSS
$custom: #27147d;
$custom-light: #6f56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27147d",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 250.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30702,
    "c": 0.16142,
    "h": 279.3
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#27147D
secondary
#9DB23A
accent
#EF39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27147D

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

Preview Lab → · Contrast checker → · Palette generator →

#27147D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva